Handle for the global variable store shared among ink runners.
More...
#include <inkcpp.h>
Handle for the global variable store shared among ink runners.
Stores global variable values, visit counts, turn counts, etc.
◆ InkObserver
- Parameters
-
new_value | contains the value newly assigned |
old_value | contains the previous value or a ValueTypeNone if the variable was previously unset. |
◆ ink_globals_create_snapshot()
Creates a snapshot for later reloading.
- Attention
- All runners assoziated with the same globals will create the same snapshot. HInkSnapshot
◆ ink_globals_delete()
Deconstructs the globals store and frees all assoziated memories.
- Attention
- invalidates all assoziated HInkRunner
◆ ink_globals_get()
Gets the value of a global variable.
- Parameters
-
variable_name | name of variable (same as in ink script) |
self | |
- Return values
-
◆ ink_globals_observe()
assignes a observer to the variable with the corresponding name.
The observer is called each time the value of the variable gets assigned. To monitor value changes compare the old with new value (see InkObserver)
◆ ink_globals_set()
Sets the value of a globals variable.
- Parameters
-
variable_name | name of variable (same as in ink script) |
self | |
value | |
- Returns
- false if the variable was not set, because the variable with this name does no exists or the value did not match.
The documentation for this class was generated from the following file: