Engine

class Game
engine_data: EngineData

undocumented

mapgen_data: MapgenData

undocumented

localization: string

undocumented

build_string: string

undocumented

class GameSessionData : Instance
infinite_ore: boolean

undocumented

staticmethod new(parent: Object, name: string) GameSessionData

Creates a new GameSessionData instance

Parameters:
  • parent (Object) – Object of parent

  • name (string) – The name of the instance

staticmethod new_simple() GameSessionData

Creates a new GameSessionData instance

staticmethod get_class() Class

Return GameSessionData class object

staticmethod cast(object: Object) GameSessionData

Trying to cast Object into GameSessionData

Parameters:

object (Object) – to cast

class EngineData : Instance
props_mul: number

undocumented

dpi: number

undocumented

props_quality: number

undocumented

reflection_preset: integer

undocumented

transparency_preset: integer

undocumented

gi_preset: integer

undocumented

fps: integer

undocumented

res_x: integer

undocumented

res_y: integer

undocumented

loading_range: integer

undocumented

performance: boolean

undocumented

performance_graph: boolean

undocumented

ctrl_hotbar: boolean

undocumented

alt_hotbar: boolean

undocumented

shift_hotbar: boolean

undocumented

fov: number

undocumented

fog: number

undocumented

window_mode: integer

undocumented

staticmethod new(parent: Object, name: string) EngineData

Creates a new EngineData instance

Parameters:
  • parent (Object) – Object of parent

  • name (string) – The name of the instance

staticmethod new_simple() EngineData

Creates a new EngineData instance

staticmethod get_class() Class

Return EngineData class object

staticmethod cast(object: Object) EngineData

Trying to cast Object into EngineData

Parameters:

object (Object) – to cast

class Console : Instance

Engine console

staticmethod run(command: string)

Executes engine console command

staticmethod get_string(variable: string) string

Get engine console variable

staticmethod get_float(variable: string) number

Get engine console variable

staticmethod get_int(variable: string) integer

Get engine console variable

EngineConsole.new(parent: Object, name: string) EngineConsole

Creates a new EngineConsole instance

Parameters:
  • parent (Object) – Object of parent

  • name (string) – The name of the instance

EngineConsole.new_simple() EngineConsole

Creates a new EngineConsole instance

EngineConsole.get_class() Class

Return EngineConsole class object

EngineConsole.cast(object: Object) EngineConsole

Trying to cast Object into EngineConsole

Parameters:

object (Object) – to cast

class EventSystem : Object
staticmethod get_instance() EventSystem

Get global instance of EventSystem

sub(self: EventSystem, event: integer, action: function) Subscription: integer

Subscribe

Parameters:
  • event (integer) – Event id

  • action (function) – Triggering action

Returns:

Subscription (integer) – id

unsub(self: EventSystem, event: integer, id: integer)

Unsubscribe

Parameters:
  • event (integer) – Event id

  • id (integer) – Subscription id

emmit(self: EventSystem, event: integer, table: Context)

Emmit

Parameters:
  • event (integer) – Event id

  • table (Context) – table

class Setting : Prototype
restart: boolean

undocumented

set_action: function

undocumented

label: string

undocumented

type: string

undocumented

category: string

undocumented

string_value: string

undocumented

string_options: string[]

undocumented

int_value: integer

undocumented

int_default_value: integer

undocumented

max_value: integer

undocumented

min_value: integer

undocumented

key_binding: string

undocumented

default_key: string

undocumented

staticmethod reg(name: string) Setting

Register a new Setting static object

Parameters:

name (string) – The name of the object

staticmethod find(name: string) Setting

Searching for Setting in db

Parameters:

name (string) – The name of the object

staticmethod get_class() Class

Return Setting class object

staticmethod cast(object: Object) Setting

Trying to cast Object into Setting

Parameters:

object (Object) – to cast

class SettingsCategory : Prototype
settings: Setting[]

undocumented

label: string

undocumented

file_name: string

undocumented

staticmethod reg(name: string) SettingsCategory

Register a new SettingsCategory static object

Parameters:

name (string) – The name of the object

staticmethod find(name: string) SettingsCategory

Searching for SettingsCategory in db

Parameters:

name (string) – The name of the object

staticmethod get_class() Class

Return SettingsCategory class object

staticmethod cast(object: Object) SettingsCategory

Trying to cast Object into SettingsCategory

Parameters:

object (Object) – to cast