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(): pano-typed.GameUIState

Gets the current game state.

GetMaps

GameInterfaceAPI.GetMaps(): pano-typed.GameInterfaceAPI.GameMap[]

No description provided.

GetMountedSteamApps

GameInterfaceAPI.GetMountedSteamApps(): number[]

Get the AppIDs of all currently mounted Steam apps.

GetOperatingSystem

GameInterfaceAPI.GetOperatingSystem(): windows | linux | unknown

Get the current operating system.

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): pano-typed.float

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

GetSettingInt

GameInterfaceAPI.GetSettingInt(key: string): pano-typed.int32

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

GetSettingString

GameInterfaceAPI.GetSettingString(key: string): string

No description provided.

Parameter

NameTypeDescription
keystringNo description provided.

GetWindowDimensions

GameInterfaceAPI.GetWindowDimensions(): { aspectRatio: number; height: number; width: number; }

Gets the dimensions (width & height) and calculated aspect ratio of the game window.

RegisterGameEventHandler

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

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

Parameters

NameTypeDescription
event_namestringNo description provided.
callbackpano-typed.Func<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.