TypeSerializationHelper.ITypeSerialization
An interface in Root.Township, the global namespace.
A serializer for one field type, used to build the network sync and save read/write delegates for a class's fields. Got from TypeSerializationHelper.GetSerialization.
- Listed in Global namespace: T to X
- Nested in
TypeSerializationHelper - Derived types
TypeSerializationHelper.TypeSerialization<TType>
Methods
| Member | What it is |
|---|---|
void Handle<T>(Type type, Delegate get, Delegate set, ref Action<T, Stream, ChunkVersioning> syncWrite, ref Action<T, Stream, ChunkVersioning> syncRead) | Adds read and write steps for a single field (given its getter and setter) to the sync delegates. |
void HandleArray<T>(Type type, Delegate get, Delegate set, ref Action<T, Stream, ChunkVersioning> syncWrite, ref Action<T, Stream, ChunkVersioning> syncRead) | Adds read and write steps for an array field, writing the length and then each element. |
void Initialize() | Called once when the serializer is added to the type map. |
Used in
Members of other types that take, return or hold a ITypeSerialization: