Skip to content

@temporary-escape/mod-sdk / Commands

Class: Commands ​

Defined in: commands.ts:45

Sector console command registry. Accessible as engine.commands.

Commands are per-sector and not persisted; registering the same name again replaces the previous handler.

Constructors ​

Constructor ​

ts
new Commands(): Commands;

Returns ​

Commands

Methods ​

register() ​

ts
register(name: string, callback: CommandCallback): void;

Defined in: commands.ts:46

Parameters ​

ParameterType
namestring
callbackCommandCallback

Returns ​

void