diff options
Diffstat (limited to 'NorthstarDedicatedTest/context.cpp')
-rw-r--r-- | NorthstarDedicatedTest/context.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/context.cpp b/NorthstarDedicatedTest/context.cpp new file mode 100644 index 00000000..6cd9d885 --- /dev/null +++ b/NorthstarDedicatedTest/context.cpp @@ -0,0 +1,16 @@ +#include "pch.h" +#include "context.h" + +const char* GetContextName(Context context) +{ + if (context == NONE) + return ""; + if (context == CLIENT) + return "CLIENT"; + else if (context == SERVER) + return "SERVER"; + else if (context == UI) + return "UI"; + + return nullptr; +}
\ No newline at end of file |