Skip to main content

TypeSerializationHelper.EnumSerialization<T>

A class in Root.Township, the global namespace.

Serializer for any enum, sent as its int value. Made on demand by GetSerialization.

Constructors​

MemberWhat it is
EnumSerialization()Creates a TypeSerializationHelper.EnumSerialization with default values.

Methods​

MemberWhat it is
protected override void Serialize(Type type, ref T enumValue, Stream stream, ChunkVersioning versioning)Writes the enum as an int over the full int range, or reads it back and casts it.