Skip to main content

ClientSync

A class in Root.Township, Alta.Networking.

The client side ISync that SyncFactory.Create makes when not on the server. Only the client read and write handlers are kept; the server calls do nothing.

Constructors​

MemberWhat it is
ClientSync(INetworkEntity entity, EntityMessageType type)Creates a ClientSync from entity and type.

Methods​

MemberWhat it is
ISync OnClientRead(SerializeMethod reader)Sets the method used to read incoming messages of this type.
ISync OnClientWrite(SerializeMethod writer)Sets the method used to write this sync's data when sending.
ISync OnServerRead(SerializeMethod reader)Does nothing on the client.
ISync OnServerReadAndRelay(SerializeMethod reader, SerializeMethod writer)Does nothing on the client.
ISync OnServerWrite(SerializeMethod writer)Does nothing on the client.
void SendToPlayer(IPlayer player)Not allowed on the client; logs an error.
ISync SetOwner(IPlayer player)Does nothing on the client.