Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ContainerSerializationSaveContext Interface Reference

Base serialization context for saving data to BaseSerializationSaveContainer based class. More...

Inheritance diagram for ContainerSerializationSaveContext:
[legend]

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)
 

Detailed Description

Base serialization context for saving data to BaseSerializationSaveContainer based class.

This context passes given data to set container class.

Constructor & Destructor Documentation

◆ ContainerSerializationSaveContext()

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.

Member Function Documentation

◆ GetContainer()

proto external BaseSerializationSaveContainer ContainerSerializationSaveContext.GetContainer ( )

Returns the assigned container.

◆ SetContainer()

proto external void ContainerSerializationSaveContext.SetContainer ( BaseSerializationSaveContainer  container)

Set the new assigned container.

Parameters
containerThe new container.

The documentation for this interface was generated from the following file: