Some classes for syncing entity state changes. Similar to the NetworkEvents in the old netcode, but the logic is split into separate classes which prevent the server from reading updates for entities that aren't IClientSerializable.
todo: add NetEntityEventManagers to server & client, some logic to prevent sending events that don't need to be sent (e.g. duplicate event state updates)
This commit is contained in:
@@ -39,6 +39,8 @@ namespace Barotrauma.Networking
|
||||
private UInt32 lastQueueChatMsgID = 0; //last message added to the queue
|
||||
private List<ChatMessage> chatMsgQueue = new List<ChatMessage>();
|
||||
|
||||
public UInt32 LastSentEntityEventID;
|
||||
|
||||
public byte ID
|
||||
{
|
||||
get { return myID; }
|
||||
|
||||
Reference in New Issue
Block a user