Class

UtilsCore

UtilsCore()

Constructor

# new UtilsCore()

утилиты

View Source core/utils/index.ts, line 14

Classes

UtilsCore

Members

Commander

# commander

менеджер команд

View Source core/utils/index.ts, line 24

Commander

# commander

менеджер команд

View Source core/utils/index.ts, line 105

EventEmitter

# events

events менеджер событий

View Source core/utils/index.ts, line 19

EventEmitter

# events

events менеджер событий

View Source core/utils/index.ts, line 98

Command

# getCommand

возвращает текущую команду

View Source core/utils/index.ts, line 40

# getCommandStatus

статус команды

View Source core/utils/index.ts, line 47

Methods

# executeCommand(context) → {void}

выполняет команду по переданному контексту, аналогичен handler.execute

Parameters:
Name Type Description
context IContext

View Source core/utils/index.ts, line 144

void

# getCommand() → {Command}

возвращает текущую команду

View Source core/utils/index.ts, line 113

Command

# getCommandStatus() → {'stop'|'ready'|'default'}

статус команды

View Source core/utils/index.ts, line 120

'stop' | 'ready' | 'default'

# setCommand($command) → {void}

устанавливает команду

Parameters:
Name Type Description
$command Command

View Source core/utils/index.ts, line 136

void

# setCommandStatus(stat) → {'stop'|'ready'|'default'}

меняет статус выполнения команды

Parameters:
Name Type Description
stat 'stop' | 'ready' | 'default'

View Source core/utils/index.ts, line 128

'stop' | 'ready' | 'default'