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:
@@ -35,6 +35,7 @@ namespace Barotrauma.Networking
|
||||
public bool hasLobbyData = false;
|
||||
public UInt32 lastSentChatMsgID = 0; //last msg this client said
|
||||
public UInt32 lastRecvChatMsgID = 0; //last msg this client knows about
|
||||
public UInt32 lastRecvEntityEventID = 0;
|
||||
|
||||
public UInt32 lastRecvEntitySpawnID = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user