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

Base class for serialization contexts. More...

Inheritance diagram for BaseSerializationContext:
[legend]

Public Member Functions

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 class for serialization contexts.

Member Function Documentation

◆ EnableTypeDiscriminator()

proto external void BaseSerializationContext.EnableTypeDiscriminator ( string  fieldName = "$type")

Type discriminator is used to add polymorph object instance support to the serializer.

Type is written inside the object when saving. When the load happens, it creates the instance based on this type.

◆ EndObject()

proto external bool BaseSerializationContext.EndObject ( )

◆ IsTypeDiscriminatorEnabled()

proto external bool BaseSerializationContext.IsTypeDiscriminatorEnabled ( )

◆ IsValid()

proto external bool BaseSerializationContext.IsValid ( )

◆ StartObject()

proto external bool BaseSerializationContext.StartObject ( string  name)

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