TypeSerializationHelper.FailedTypeSerialization
A class in Root.Township, the global namespace.
Do-nothing serializer returned when no serializer fits a type. Fields using it are simply not synced.
- Listed in Global namespace: T to X
- Nested in
TypeSerializationHelper - Inherits or implements
TypeSerializationHelper.TypeSerialization<bool>
Constructors
| Member | What it is |
|---|---|
FailedTypeSerialization() | Creates a TypeSerializationHelper.FailedTypeSerialization with default values. |
Methods
| Member | What it is |
|---|---|
override void Handle<T>(Type type, Delegate get, Delegate set, ref Action<T, Stream, ChunkVersioning> syncWrite, ref Action<T, Stream, ChunkVersioning> syncRead) | Does nothing, so no read or write delegate is added. |
override void HandleArray<T>(Type type, Delegate get, Delegate set, ref Action<T, Stream, ChunkVersioning> syncWrite, ref Action<T, Stream, ChunkVersioning> syncRead) | Does nothing, so no read or write delegate is added. |
protected override void Serialize(Type type, ref bool value, Stream stream, ChunkVersioning versioning) | Does nothing. |