ControlledWriteSync
A class in Root.Township, Alta.Networking.
An entity message channel where each send passes its own write method, unlike MethodSync which uses a fixed one. Registers the read handler when created.
- Listed in Networking and servers
Constructors
| Member | What it is |
|---|---|
ControlledWriteSync(NetworkEntity entity, EntityMessageType type, SerializeMethod handler) | Creates a ControlledWriteSync from entity, type and handler. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private NetworkEntity entity | The entity whose message handler carries the messages. |
private EntityMessageType type | The entity message type this sync uses. |
Methods
| Member | What it is |
|---|---|
void SendToChunks(SerializeMethod sendMethod, params Player[] except) | Sends the message, written by the given method, to every player in range of the entity's chunks, minus any listed. |
void SendToPlayer(Player player, SerializeMethod sendMethod) | Sends the message, written by the given method, to one player. |
Used in
Members of other types that take, return or hold a ControlledWriteSync:
LandmarkManager.changeSync, LandmarkManager.initialSync, ServerClientLandmarkManager.changeSync, ServerClientLandmarkManager.initialSync, ServerClientLandmarkManager.ServerClientLandmarkManager, ServerLandmarkManager.changeSync, ServerLandmarkManager.initialSync, ServerLandmarkManager.ServerLandmarkManager.