This commit demonstrates how to add a new client command to node-metaverse.

It also shows how to add a new command category (ParcelCommands)

Everything under dist/ is auto-generated with "npm run build".
This commit is contained in:
Casper Warden
2018-10-06 17:18:46 +01:00
parent cb2be348d7
commit ad559567b3
17 changed files with 215 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ 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';
export class ClientCommands
{
@@ -17,6 +18,7 @@ export class ClientCommands
public asset: AssetCommands;
public teleport: TeleportCommands;
public region: RegionCommands;
public parcel: ParcelCommands;
public grid: GridCommands;
public comms: CommunicationsCommands;
public agent: AgentCommands;
@@ -29,6 +31,7 @@ export class ClientCommands
this.asset = new AssetCommands(region, agent, bot);
this.teleport = new TeleportCommands(region, agent, bot);
this.region = new RegionCommands(region, agent, bot);
this.parcel = new ParcelCommands(region, agent, bot);
this.grid = new GridCommands(region, agent, bot);
this.comms = new CommunicationsCommands(region, agent, bot);
this.agent = new AgentCommands(region, agent, bot);