GameInterfaceAPI

Functions

ConsoleCommand

GameInterfaceAPI.ConsoleCommand(command: string): void

No description provided.

Parameter

NameTypeDescription
commandstringNo description provided.

GetCurrentMap

GameInterfaceAPI.GetCurrentMap(): string | null

Gets the current map name, or null if no map is active.

GetGameUIState

GameInterfaceAPI.GetGameUIState(): GameUIState

Gets the current game state.

GetSettingBool

GameInterfaceAPI.GetSettingBool(key: string): boolean

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

GetSettingColor

GameInterfaceAPI.GetSettingColor(key: string): string

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

GetSettingFloat

GameInterfaceAPI.GetSettingFloat(key: string): float

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

GetSettingInt

GameInterfaceAPI.GetSettingInt(key: string): int32

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

GetSettingString

GameInterfaceAPI.GetSettingString(key: string): string

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

RegisterGameEventHandler

GameInterfaceAPI.RegisterGameEventHandler(event_name: string, callback: Func<any[], void>): uuid

Registers a callback for a specific game event type, returns an event handler ID to unregister with

Parameters

NameTypeDescription
event_namestringNo description provided.
callbackFunc<any[], void>No description provided.

SetSettingBool

GameInterfaceAPI.SetSettingBool(key: string, value: boolean): void

No description provided.

Parameters

NameTypeDescription
keystringNo description provided.
valuebooleanNo description provided.

SetSettingColor

GameInterfaceAPI.SetSettingColor(key: string, value: unknown): void

No description provided.

Parameters

NameTypeDescription
keystringNo description provided.
valueunknownNo description provided.

SetSettingFloat

GameInterfaceAPI.SetSettingFloat(key: string, value: number): void

No description provided.

Parameters

NameTypeDescription
keystringNo description provided.
valuenumberNo description provided.

SetSettingInt

GameInterfaceAPI.SetSettingInt(key: string, value: number): void

No description provided.

Parameters

NameTypeDescription
keystringNo description provided.
valuenumberNo description provided.

SetSettingString

GameInterfaceAPI.SetSettingString(key: string, value: string): void

No description provided.

Parameters

NameTypeDescription
keystringNo description provided.
valuestringNo description provided.

UnregisterGameEventHandler

GameInterfaceAPI.UnregisterGameEventHandler(callback: number): void

Unregisters a previously registered event handler for a game event

Parameter

NameTypeDescription
callbacknumberNo description provided.