Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GameVariables

Hierarchy

Index

Constructors

  • new GameVariables(gp: CoreSDK, platformAdapter: default, variables: ProjectVariable[]): GameVariables

Properties

#setVariables: ((variables: ProjectVariable[]) => void) = ...

Type declaration

    • (variables: ProjectVariable[]): void
    • Parameters

      • variables: ProjectVariable[]

      Returns void

_events: EventLite = ...
list: ProjectVariable[] = []
state: VariablesState = {}

Accessors

  • get isPlatformVariablesAvailable(): boolean

Methods

  • fetch(): Promise<ProjectVariable[]>
  • fetchPlatformVariables(input: GetVariablesInput): Promise<Record<string, any>>
  • get(key: string): string | number | boolean
  • has(key: string): boolean
  • type(key: string): "stats" | "data" | "flag" | "file" | "image" | "doc_html"

Generated using TypeDoc