Common options:
id / name / prefix / type / modevariableslangmode (graph mode)mode is equivalent to mode: 'beyond'.g.server({ id: 1073741825, mode: 'classic' }).type: 'class' and throws an error.... is classic mode only / ... is beyond mode only).type (server graph subtype)'entity' | 'status' | 'class' | 'item'.'entity'.mode: 'classic', type must be 'entity' | 'status' | 'item'.variables (graph variable definitions)variables becomes a graph variable and gets typed f.get('name') / f.set('name', value).dict(...) declarations.str / int / entity / guid / faction / config_id / prefab_id.int -> config_id_list and int -> float_list_list are supported.__gsts variables gsts generates for timers and similar); more is a compile error.Example (excerpt):
For the full runnable cases:
Wrap an initial value in exposed(...) to expose the variable to the stage: every entity that hosts the graph can fill in its own value in the entity's node graph settings ("edit variables"). f.get / f.set stay the same.
entity(guid)._GSTS.