Reducing usage of #if CLIENT / #elif SERVER

The server will implement some classes it probably shouldn't need because certain items or game states depend on them.
This commit is contained in:
juanjp600
2017-06-14 17:30:40 -03:00
parent 389a9512d9
commit 7bc535780c
471 changed files with 3985 additions and 3159 deletions
@@ -10,7 +10,9 @@ namespace Barotrauma.Networking
/// </summary>
interface IClientSerializable : INetSerializable
{
#if CLIENT
void ClientWrite(NetBuffer msg, object[] extraData = null);
#endif
void ServerRead(ClientNetObject type, NetBuffer msg, Client c);
}
@@ -20,6 +22,8 @@ namespace Barotrauma.Networking
interface IServerSerializable : INetSerializable
{
void ServerWrite(NetBuffer msg, Client c, object[] extraData = null);
#if CLIENT
void ClientRead(ServerNetObject type, NetBuffer msg, float sendingTime);
#endif
}
}