using Lidgren.Network; namespace Barotrauma.Networking { /// /// Interface for entities that the clients can send information of to the server /// interface IClientSerializable { ushort NetStateID { get; } void ClientWrite(NetOutgoingMessage msg); void ServerRead(NetIncomingMessage msg); } /// /// Interface for entities that the server can send information of to the clients /// interface IServerSerializable { ushort NetStateID { get; } void ServerWrite(NetOutgoingMessage msg); void ClientRead(NetIncomingMessage msg); } }