[raknet] Change RakServer::vftable_4() to RakServer::Start(...)

This commit is contained in:
RD42 2024-02-14 22:58:09 +08:00
parent 03cc592835
commit 2b633f0f80
3 changed files with 28 additions and 3 deletions

View File

@ -7,9 +7,16 @@ void RakServer::vftable_0()
// TODO: RakServer::vftable_0() (server W: 45AC90 L: 807B8C0) // TODO: RakServer::vftable_0() (server W: 45AC90 L: 807B8C0)
} }
void RakServer::vftable_4() bool RakServer::Start( unsigned short AllowedPlayers, unsigned int depreciated, int threadSleepTimer, unsigned short port, const char *forceHostAddress )
{ {
bool init;
init=false;
// TODO: RakServer::vftable_4() (server W: 45A130 L: 807B900) // TODO: RakServer::vftable_4() (server W: 45A130 L: 807B900)
return init;
} }
void RakServer::vftable_8() void RakServer::vftable_8()

View File

@ -16,7 +16,16 @@ class RAK_DLL_EXPORT RakServer : public RakServerInterface, public RakPeer
public: public:
void vftable_0(); void vftable_0();
void vftable_4();
/// Call this to initiate the server with the number of players you want to be allowed connected at once
/// \param[in] AllowedPlayers Current maximum number of allowed players is 65535
/// \param[in] depreciated is for legacy purposes and is unused
/// \param[in] threadSleepTimer How many ms to Sleep each internal update cycle (30 to give the game priority, 0 for regular (recommended), -1 to not Sleep() (may be slower))
/// \param[in] port is the port you want the server to read and write onMake sure this port is open for UDP
/// \param[in] forceHostAddress Can force RakNet to use a particular IP to host on. Pass 0 to automatically pick an IP
/// \return true on successful initiation, false otherwise
bool Start( unsigned short AllowedPlayers, unsigned int depreciated, int threadSleepTimer, unsigned short port, const char *forceHostAddress=0 );
void vftable_8(); void vftable_8();
void vftable_C(); void vftable_C();

View File

@ -14,7 +14,16 @@ class RAK_DLL_EXPORT RakServerInterface
public: public:
virtual void vftable_0()=0; virtual void vftable_0()=0;
virtual void vftable_4()=0;
/// Call this to initiate the server with the number of players you want to be allowed connected at once
/// \param[in] AllowedPlayers Current maximum number of allowed players is 65535
/// \param[in] depreciated is for legacy purposes and is unused
/// \param[in] threadSleepTimer How many ms to Sleep each internal update cycle (30 to give the game priority, 0 for regular (recommended), -1 to not Sleep() (may be slower))
/// \param[in] port is the port you want the server to read and write onMake sure this port is open for UDP
/// \param[in] forceHostAddress Can force RakNet to use a particular IP to host on. Pass 0 to automatically pick an IP
/// \return true on successful initiation, false otherwise
virtual bool Start( unsigned short AllowedPlayers, unsigned int depreciated, int threadSleepTimer, unsigned short port, const char *forceHostAddress=0 )=0;
virtual void vftable_8()=0; virtual void vftable_8()=0;
virtual void vftable_C()=0; virtual void vftable_C()=0;