gg-static overview
Table of contents
utils
GgStatic (class)
Signature
export declare class GgStatic {
private constructor()
}
registerConsoleCommand (method)
Signature
public registerConsoleCommand(
world: GgWorld<any, any> | null,
command: string,
handler: (...args: string[]) => Promise<string>,
doc?: string,
): void
deregisterWorldCommands (method)
Signature
public deregisterWorldCommands(world: GgWorld<any, any> | null): void
console (method)
Signature
public async console(input: string): Promise<string>
runConsoleCommand (method)
Signature
public async runConsoleCommand(command: string, args: string[]): Promise<string>
consoleKeyPressEventListener (property)
Signature
consoleKeyPressEventListener: (event: KeyboardEvent) => void
consoleCommands (property)
Signature
consoleCommands: any