Skip to content

game_event_t

Getters

get_name

event:get_name(): string


get_bool

event:get_bool(key_name: string, default_value?: boolean): boolean

Name Type Description
key_name string Key name
default_value boolean Optional. Default value which will be returned if event value isn't available

get_int

event:get_int(key_name: string, default_value?: number): number

Name Type Description
key_name string Key name
default_value number Optional. Default value which will be returned if event value isn't available

get_uint64

event:get_uint64(key_name: string, default_value?: number): number

Name Type Description
key_name string Key name
default_value number Optional. Default value which will be returned if event value isn't available

get_float

event:get_float(key_name: string, default_value?: number): number

Name Type Description
key_name string Key name
default_value number Optional. Default value which will be returned if event value isn't available

get_string

event:get_string(key_name: string, default_value?: string): string

Name Type Description
key_name string Key name
default_value string Optional. Default value which will be returned if event value isn't available

get_wstring

event:get_wstring(key_name: string, default_value?: string): string

Name Type Description
key_name string Key name
default_value string Optional. Default value which will be returned if event value isn't available

Setters

set_bool

event:set_bool(key_name: string, value: boolean)

Name Type Description
key_name string Key name
value boolean New boolean value

set_int

event:set_int(key_name: string, value: number)

Name Type Description
key_name string Key name
value number New int value

set_uint64

event:set_uint64(key_name: string, value: number)

Name Type Description
key_name string Key name
value number New uint64 value

set_float

event:set_float(key_name: string, value: number)

Name Type Description
key_name string Key name
value number New float value

set_string

event:set_string(key_name: string, value: string)

Name Type Description
key_name string Key name
value string New string value

set_wstring

event:set_wstring(key_name: string, value: string)

Name Type Description
key_name string Key name
value string New wstring value