aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/context.cpp')
-rw-r--r--NorthstarDLL/context.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/NorthstarDLL/context.cpp b/NorthstarDLL/context.cpp
new file mode 100644
index 00000000..7478faa3
--- /dev/null
+++ b/NorthstarDLL/context.cpp
@@ -0,0 +1,14 @@
+#include "pch.h"
+#include "context.h"
+
+const char* GetContextName(ScriptContext context)
+{
+ if (context == ScriptContext::CLIENT)
+ return "CLIENT";
+ else if (context == ScriptContext::SERVER)
+ return "SERVER";
+ else if (context == ScriptContext::UI)
+ return "UI";
+
+ return "";
+} \ No newline at end of file