Client communicates event syncing errors to the server

This should help
This commit is contained in:
juanjp600
2018-10-16 17:11:20 -03:00
parent 6bad59dfba
commit 13dc008cb5
4 changed files with 80 additions and 4 deletions
@@ -17,7 +17,9 @@ namespace Barotrauma.Networking
FILE_REQUEST, //request a (submarine) file from the server
RESPONSE_STARTGAME, //tell the server whether you're ready to start
SERVER_COMMAND //tell the server to end a round or kick/ban someone (special permissions required)
SERVER_COMMAND, //tell the server to end a round or kick/ban someone (special permissions required)
ERROR //tell the server that an error occurred
}
enum ClientNetObject
{
@@ -29,6 +31,12 @@ namespace Barotrauma.Networking
ENTITY_STATE
}
enum ClientNetError
{
MISSING_EVENT, //client was expecting a previous event
MISSING_ENTITY //client can't find an entity of a certain ID
}
enum ServerPacketHeader
{
AUTH_RESPONSE, //tell the player if they require a password to log in