A class in Root.Township, the global namespace.
A Sync that writes a plain object to an entity message by calling a serialize delegate you pass in, using the latest chunk versioning.
Constructors
Fields
2 private and internal fields
| Member | What it is |
|---|
private Action<T, Stream, ChunkVersioning> sync | The delegate that writes the target object to a stream. |
private T target | The object being synced. |
Properties
| Member | What it is |
|---|
override SerializeMethod Handler { get; } | Returns Serialize as this sync's serialize method. |
Methods
| Member | What it is |
|---|
void Serialize(IPlayer player, Stream stream) | Writes target to the stream for a player by calling the sync delegate. |
Used in
Members of other types that take, return or hold a ClassSerializer<T>: