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