Enfusion Script API
|
Base class for serialization contexts. More...
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) | |
Base class for serialization contexts.
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.
proto external bool BaseSerializationContext.EndObject | ( | ) |
proto external bool BaseSerializationContext.IsTypeDiscriminatorEnabled | ( | ) |
proto external bool BaseSerializationContext.IsValid | ( | ) |