Enfusion Script API
|
Scripted save container for custom handling of storage. More...
Protected Member Functions | |
bool | StartObject () |
Objects are serialized as sequence of: StartObject() WriteKey("myValue"); WriteInt(42); WriteKey("anotherValue") WriteFloat(13.37); ... EndObject();. | |
bool | EndObject () |
bool | StartArray (int count) |
Arrays don't have named values and as such are only a sequence of value writes. | |
bool | EndArray () |
bool | StartMap (int count) |
Maps are key value pairs which are written similar to objects, as sequence of WriteKey(key) + WriteXXX(value); Keys are converted automatically to strings for serialization for cases such as map<int, float>. | |
bool | EndMap () |
bool | WriteKey (string key) |
Key writer for named properties in objects or map keys. | |
bool | WriteNull () |
Typed value writers. | |
bool | WriteBool (bool value) |
bool | WriteString (string value) |
bool | WriteInt (int value) |
bool | WriteFloat (float value) |
bool | WriteVector (vector value) |
Additional Inherited Members | |
![]() | |
proto external ref Managed | Clone () |
Return shallow copy of object, or null if it is not allowed (not public constructor) | |
Scripted save container for custom handling of storage.
|
protected |
|
protected |
|
protected |
Arrays don't have named values and as such are only a sequence of value writes.
Arrays may be nested, in which case StartArray is called while already inside an array. Sets are considered arrays for serialization.
Maps are key value pairs which are written similar to objects, as sequence of WriteKey(key) + WriteXXX(value); Keys are converted automatically to strings for serialization for cases such as map<int, float>.
The value type of the map is known one the first value write is called.
|
protected |
Objects are serialized as sequence of: StartObject() WriteKey("myValue"); WriteInt(42); WriteKey("anotherValue") WriteFloat(13.37); ... EndObject();.
There may be sub-objects/arrays/maps. These will be written using a sequence of WriteKey(...) + StartObject/Array/Map(). Each nested object/array/map will be terminated by EndObject/Array/Map();
Key writer for named properties in objects or map keys.
|
protected |
Typed value writers.