From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- gcsdk/gcwebapi.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 gcsdk/gcwebapi.cpp (limited to 'gcsdk/gcwebapi.cpp') diff --git a/gcsdk/gcwebapi.cpp b/gcsdk/gcwebapi.cpp new file mode 100644 index 0000000..af7783d --- /dev/null +++ b/gcsdk/gcwebapi.cpp @@ -0,0 +1,31 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: CWAPI code for GC access to the Web API server +// +//============================================================================= + +#include "stdafx.h" +#include "gcwebapi.h" +#include "enumutils.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +CUtlVector< GCWebAPIInterfaceMapCreationFunc_t > & CGCWebAPIInterfaceMapRegistrar::VecInstance() +{ + static CUtlVector< GCWebAPIInterfaceMapCreationFunc_t > sm_vecInterfaceFuncs; + return sm_vecInterfaceFuncs; +} + + +ENUMSTRINGS_START( EWebApiParamType ) +{ k_EWebApiParamTypeInvalid, "Invalid" }, +{ k_EWebApiParamTypeInt32, "int32" }, +{ k_EWebApiParamTypeUInt32, "uint32" }, +{ k_EWebApiParamTypeInt64, "int64" }, +{ k_EWebApiParamTypeUInt64, "uint64" }, +{ k_EWebApiParamTypeFloat, "float" }, +{ k_EWebApiParamTypeString, "string" }, +{ k_EWebApiParamTypeBool, "bool" }, +{ k_EWebApiParamTypeRawBinary, "rawbinary" } +ENUMSTRINGS_REVERSE( EWebApiParamType, k_EWebApiParamTypeInvalid ) -- cgit v1.2.3