Server sends ServerEntityEvents to clients, NetEntityEvents can contain an object array which will be passed to the serializable entity (now only used for ItemComponent indices)

This commit is contained in:
Regalis
2016-11-13 13:56:48 +02:00
parent c314b37029
commit 498c72c64a
24 changed files with 133 additions and 43 deletions

View File

@@ -12,7 +12,7 @@ namespace Barotrauma.Networking
{
UInt32 NetStateID { get; }
void ClientWrite(NetBuffer msg);
void ClientWrite(NetBuffer msg, object[] extraData = null);
void ServerRead(NetIncomingMessage msg, Client c);
}
@@ -23,7 +23,7 @@ namespace Barotrauma.Networking
{
UInt32 NetStateID { get; }
void ServerWrite(NetBuffer msg, Client c);
void ServerWrite(NetBuffer msg, Client c, object[] extraData = null);
void ClientRead(NetIncomingMessage msg, float sendingTime);
}
}