Added ability in SDKTools to get/set prop values on gamerules class (bug 4983, r=fyren).

This commit is contained in:
Nicholas Hastings
2011-07-06 17:37:35 -04:00
parent f24efc17c1
commit 4521f80e5a
20 changed files with 1058 additions and 38 deletions
+5
View File
@@ -40,6 +40,7 @@
#include "vsound.h"
#include "output.h"
#include "hooks.h"
#include "gamerulesnatives.h"
#include <ISDKTools.h>
/**
@@ -84,6 +85,7 @@ extern sp_nativeinfo_t g_StringTableNatives[];
extern sp_nativeinfo_t g_VoiceNatives[];
extern sp_nativeinfo_t g_EntInputNatives[];
extern sp_nativeinfo_t g_TeamNatives[];
extern sp_nativeinfo_t g_GameRulesNatives[];
static void InitSDKToolsAPI();
@@ -107,6 +109,7 @@ bool SDKTools::SDK_OnLoad(char *error, size_t maxlength, bool late)
sharesys->AddNatives(myself, g_EntInputNatives);
sharesys->AddNatives(myself, g_TeamNatives);
sharesys->AddNatives(myself, g_EntOutputNatives);
sharesys->AddNatives(myself, g_GameRulesNatives);
SM_GET_IFACE(GAMEHELPERS, g_pGameHelpers);
@@ -154,6 +157,8 @@ bool SDKTools::SDK_OnLoad(char *error, size_t maxlength, bool late)
GetIServer();
GameRulesNativesInit();
InitSDKToolsAPI();
return true;