2020-01-06 12:10:40 +00:00
|
|
|
import { Region } from './Region';
|
|
|
|
|
import { Agent } from './Agent';
|
|
|
|
|
import { Bot } from '../Bot';
|
|
|
|
|
import { NetworkCommands } from './commands/NetworkCommands';
|
|
|
|
|
import { AssetCommands } from './commands/AssetCommands';
|
|
|
|
|
import { TeleportCommands } from './commands/TeleportCommands';
|
|
|
|
|
import { RegionCommands } from './commands/RegionCommands';
|
|
|
|
|
import { GridCommands } from './commands/GridCommands';
|
|
|
|
|
import { CommunicationsCommands } from './commands/CommunicationsCommands';
|
|
|
|
|
import { AgentCommands } from './commands/AgentCommands';
|
|
|
|
|
import { GroupCommands } from './commands/GroupCommands';
|
|
|
|
|
import { InventoryCommands } from './commands/InventoryCommands';
|
|
|
|
|
import { ParcelCommands } from './commands/ParcelCommands';
|
|
|
|
|
import { FriendCommands } from './commands/FriendCommands';
|
2017-12-13 19:55:08 +00:00
|
|
|
|
|
|
|
|
export class ClientCommands
|
|
|
|
|
{
|
|
|
|
|
public network: NetworkCommands;
|
|
|
|
|
public asset: AssetCommands;
|
|
|
|
|
public teleport: TeleportCommands;
|
|
|
|
|
public region: RegionCommands;
|
2018-10-06 17:18:46 +01:00
|
|
|
public parcel: ParcelCommands;
|
2018-10-12 14:34:43 +01:00
|
|
|
public friends: FriendCommands;
|
2017-12-13 19:55:08 +00:00
|
|
|
public grid: GridCommands;
|
|
|
|
|
public comms: CommunicationsCommands;
|
|
|
|
|
public agent: AgentCommands;
|
|
|
|
|
public group: GroupCommands;
|
2017-12-19 23:43:00 +00:00
|
|
|
public inventory: InventoryCommands;
|
2017-12-13 19:55:08 +00:00
|
|
|
|
|
|
|
|
constructor(region: Region, agent: Agent, bot: Bot)
|
|
|
|
|
{
|
|
|
|
|
this.network = new NetworkCommands(region, agent, bot);
|
|
|
|
|
this.asset = new AssetCommands(region, agent, bot);
|
|
|
|
|
this.teleport = new TeleportCommands(region, agent, bot);
|
|
|
|
|
this.region = new RegionCommands(region, agent, bot);
|
2018-10-06 17:18:46 +01:00
|
|
|
this.parcel = new ParcelCommands(region, agent, bot);
|
2017-12-13 19:55:08 +00:00
|
|
|
this.grid = new GridCommands(region, agent, bot);
|
2018-10-12 14:34:43 +01:00
|
|
|
this.friends = new FriendCommands(region, agent, bot);
|
2017-12-13 19:55:08 +00:00
|
|
|
this.comms = new CommunicationsCommands(region, agent, bot);
|
|
|
|
|
this.agent = new AgentCommands(region, agent, bot);
|
|
|
|
|
this.group = new GroupCommands(region, agent, bot);
|
2017-12-19 23:43:00 +00:00
|
|
|
this.inventory = new InventoryCommands(region, agent, bot);
|
2017-12-13 19:55:08 +00:00
|
|
|
}
|
2018-10-09 20:03:28 +01:00
|
|
|
shutdown()
|
|
|
|
|
{
|
|
|
|
|
this.network.shutdown();
|
|
|
|
|
this.asset.shutdown();
|
|
|
|
|
this.teleport.shutdown();
|
|
|
|
|
this.region.shutdown();
|
|
|
|
|
this.parcel.shutdown();
|
|
|
|
|
this.grid.shutdown();
|
|
|
|
|
this.comms.shutdown();
|
|
|
|
|
this.agent.shutdown();
|
|
|
|
|
this.group.shutdown();
|
|
|
|
|
this.inventory.shutdown();
|
2018-10-12 14:34:43 +01:00
|
|
|
this.friends.shutdown();
|
2018-10-09 20:03:28 +01:00
|
|
|
}
|
2017-12-13 19:55:08 +00:00
|
|
|
}
|