Module game_state

Source
Expand description

A submodule that provides the GameState object, which is used as a sort of a dictionary. CK3 save files have a myriad of different objects that reference each other, and in order to allow for centralized storage and easy access, the GameState object is used.

Structs§

GameState
A struct representing all known game objects. It is guaranteed to always return a reference to the same object for the same key. Naturally the value of that reference may change as values are added to the game state. This is mainly used during the process of gathering data from the parsed save file.

Functions§

get_or_insert_dummy 🔒
Returns a reference to the object with the given key in the map, or inserts a dummy object if it does not exist and returns a reference to that.
serialize_ref_map 🔒

Type Aliases§

GameRef