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.
- Listed in Global namespace: T to X
- Nested in
TypeSerializationHelper - Inherits or implements
TypeSerializationHelper.TypeSerialization<T>
Constructors
| Member | What it is |
|---|---|
EnumSerialization() | Creates a TypeSerializationHelper.EnumSerialization with default values. |
Methods
| Member | What 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. |