Skip to main content

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.

Constructors​

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

Methods​

MemberWhat 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.