An abstract class in Root.Township, Alta.Networking.
Base for an entity sync that sends a value of type T. Registers its handler with the entity's message handler for one message type.
Constructors
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|
abstract SerializeMethod Handler { get; } | The method that writes or reads the value; set by the subclass. |
T Value { get; protected set; } | The value last sent. |
Methods
| Member | What it is |
|---|
void SendToChunks(T value, params IPlayer[] except) | Stores the value and sends it to everyone in the entity's chunks, except the given players. |
void SendToPlayer(IPlayer player, T value) | Stores the value and sends it to one player. |