diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-07-18 00:00:39 +0100 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-07-18 00:00:39 +0100 |
commit | b0bef05111a95a4cce6250d2b79e2aa5baa6dd98 (patch) | |
tree | 5bdc39717bebfc437adf8683405d58d97e1f43b2 /NorthstarDLL/r2server.h | |
parent | 6ae30c9b15fcc200c7b642016e7adbfdf9b979f4 (diff) | |
download | NorthstarLauncher-b0bef05111a95a4cce6250d2b79e2aa5baa6dd98.tar.gz NorthstarLauncher-b0bef05111a95a4cce6250d2b79e2aa5baa6dd98.zip |
use modular ServerPresence system for registering servers
Diffstat (limited to 'NorthstarDLL/r2server.h')
-rw-r--r-- | NorthstarDLL/r2server.h | 51 |
1 files changed, 3 insertions, 48 deletions
diff --git a/NorthstarDLL/r2server.h b/NorthstarDLL/r2server.h index c032d722..9d8cbdde 100644 --- a/NorthstarDLL/r2server.h +++ b/NorthstarDLL/r2server.h @@ -3,55 +3,10 @@ // use the R2 namespace for game funcs
namespace R2
{
- enum server_state_t
- {
- ss_dead = 0, // Dead
- ss_loading, // Spawning
- ss_active, // Running
- ss_paused, // Running, but paused
- };
-
- extern server_state_t* g_pServerState;
-
// server entity stuff
- extern void* (*Server_GetEntityByIndex)(int index);
-
- const int PERSISTENCE_MAX_SIZE = 0xD000;
-
- enum class ePersistenceReady : char
- {
- NOT_READY,
- READY = 3,
- READY_LOCAL = 3,
- READY_REMOTE
- };
-
- #pragma pack(push, 1)
- struct CBasePlayer
- {
- char pad0[0x16];
-
- // +0x16
- char m_Name[64];
- // +0x56
-
- char pad1[0x44A];
-
- // +0x4A0
- ePersistenceReady m_iPersistenceReady;
- // +0x4A1
-
- char pad2[0x59];
-
- // +0x4FA
- char m_PersistenceBuffer[PERSISTENCE_MAX_SIZE];
-
- char pad3[0x2006];
-
- // +0xF500
- char m_UID[32];
- };
- #pragma pack(pop)
+ class CBaseEntity;
+ extern CBaseEntity* (*Server_GetEntityByIndex)(int index);
+ class CBasePlayer;
extern CBasePlayer*(__fastcall* UTIL_PlayerByIndex)(int playerIndex);
} // namespace R2
\ No newline at end of file |