aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/r2server.h
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/r2server.h')
-rw-r--r--NorthstarDedicatedTest/r2server.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/r2server.h b/NorthstarDedicatedTest/r2server.h
new file mode 100644
index 00000000..6e09d0d1
--- /dev/null
+++ b/NorthstarDedicatedTest/r2server.h
@@ -0,0 +1,19 @@
+#pragma once
+
+// 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
+ typedef void* (*Server_GetEntityByIndexType)(int index);
+ extern Server_GetEntityByIndexType Server_GetEntityByIndex;
+} // namespace R2 \ No newline at end of file