Enfusion Script API
|
Base serialization context for saving data to BaseSerializationSaveContainer based class. More...
Public Member Functions | |
void | ContainerSerializationSaveContext (bool skipEmptyObjects=true) |
skipEmptyObjects : This feature is for writing only sub-objects to container which have some data and not creating hierarchy of empty sub-objects. | |
proto external BaseSerializationSaveContainer | GetContainer () |
Returns the assigned container. | |
proto external void | SetContainer (BaseSerializationSaveContainer container) |
Set the new assigned container. | |
Public Member Functions inherited from BaseSerializationSaveContext | |
proto bool | WriteValue (string name, void value) |
Public Member Functions inherited from BaseSerializationContext | |
proto external bool | IsValid () |
proto external void | EnableTypeDiscriminator (string fieldName="$type") |
Type discriminator is used to add polymorph object instance support to the serializer. | |
proto external bool | IsTypeDiscriminatorEnabled () |
proto external bool | StartObject (string name) |
proto external bool | EndObject () |
Public Member Functions inherited from Managed | |
proto external ref Managed | Clone () |
Return shallow copy of object, or null if it is not allowed (not public constructor) | |
Base serialization context for saving data to BaseSerializationSaveContainer based class.
This context passes given data to set container class.
void ContainerSerializationSaveContext.ContainerSerializationSaveContext | ( | bool | skipEmptyObjects = true | ) |
skipEmptyObjects : This feature is for writing only sub-objects to container which have some data and not creating hierarchy of empty sub-objects.
proto external BaseSerializationSaveContainer ContainerSerializationSaveContext.GetContainer | ( | ) |
Returns the assigned container.
proto external void ContainerSerializationSaveContext.SetContainer | ( | BaseSerializationSaveContainer | container | ) |
Set the new assigned container.
container | The new container. |