engine(masterserver): add additional masterserver, implement setmaster command

This commit is contained in:
nillerusr
2023-02-11 19:17:57 +03:00
parent 70cc94bd01
commit dda12fcec6
2 changed files with 65 additions and 42 deletions

View File

@@ -23,8 +23,6 @@
#include "engine/iserversinfo.h"
#define DEFAULT_MASTER_ADDRESS "185.192.97.130:27010"
//-----------------------------------------------------------------------------
// Purpose: Implements a master server interface.
//-----------------------------------------------------------------------------
@@ -48,7 +46,7 @@ public:
// Master sent back a challenge value, read it and send the actual heartbeat
virtual void RespondToHeartbeatChallenge( netadr_t &from, bf_read &msg ) = 0;
// Console command to set/remove master server
virtual void SetMaster_f( void ) = 0;
virtual void SetMaster_f( const CCommand &args ) = 0;
// Force a heartbeat to be issued right away
virtual void Heartbeat_f( void ) = 0;