GameSessionData
classSettings and counters of the current save
- read-only Assigning to the field raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| infinite_ore | boolean | Deposits never deplete | |
| all_research_completed | boolean | Every research starts unlocked | |
| creative_mode | boolean | Creative mode is active | |
| creative_allowed | boolean | Creative mode may be switched on | |
| total_game_time | number | Played time in seconds | |
| total_game_ticks | integer | Simulated ticks since world creation | |
| seed | string | World generation seed | |
| version | read-only | string | Game version the save was written with |
| generator | string | World generator identifier | |
| save_name | string | Save folder name | |
| cloud | boolean | Save is synchronized with the cloud | |
| world_time | integer | Locked local day-phase ticks in planet space when frozen | |
| world_time_freeze | boolean | Day phase advances on its own | |
| tick_rate | integer | Simulation ticks per second | |
Standard members (4)
Every class of this kind carries these.
| GameSessionData.cast(object) | Trying to cast Object into GameSessionData |
| GameSessionData.get_class() | Return GameSessionData class object |
| GameSessionData.new(parent, name) | Creates a new GameSessionData instance |
| GameSessionData.new_simple() | Creates a new GameSessionData instance |
Inherited from Instance (1)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name read-only Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object