1 2 3 4 5 6 7 8 9 10 11 12 13 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 ""; }