Client LuaCsForBarotrauma
INetSerializable.cs
1 namespace Barotrauma.Networking
2 {
3  interface INetSerializable { }
4 
9  {
10 #if CLIENT
11  void ClientEventWrite(IWriteMessage msg, NetEntityEvent.IData extraData = null);
12 #endif
13 #if SERVER
14  void ServerEventRead(IReadMessage msg, Client c);
15 #endif
16  }
17 
22  {
23 #if SERVER
24  void ServerEventWrite(IWriteMessage msg, Client c, NetEntityEvent.IData extraData = null);
25 #endif
26 #if CLIENT
27  void ClientEventRead(IReadMessage msg, float sendingTime);
28 #endif
29  }
30 
35  {
36 #if SERVER
37  void ServerWritePosition(ReadWriteMessage tempBuffer, Client c);
38 #endif
39 #if CLIENT
40  void ClientReadPosition(IReadMessage msg, float sendingTime);
41 #endif
42  }
43 }
Interface for entities that the clients can send events to the server
void ClientEventWrite(IWriteMessage msg, NetEntityEvent.IData extraData=null)
Interface for entities that handle ServerNetObject.ENTITY_POSITION
void ClientReadPosition(IReadMessage msg, float sendingTime)
Interface for entities that the server can send events to the clients
void ClientEventRead(IReadMessage msg, float sendingTime)