Add GetGameRules to ISDKTools (bug 4707, r=fyren)

This commit is contained in:
Nicholas Hastings
2010-11-19 23:02:27 -05:00
parent 264e42a4c5
commit 61b677c073
2 changed files with 16 additions and 1 deletions
+8 -1
View File
@@ -35,7 +35,7 @@
#include <IShareSys.h>
#define SMINTERFACE_SDKTOOLS_NAME "ISDKTools"
#define SMINTERFACE_SDKTOOLS_VERSION 1
#define SMINTERFACE_SDKTOOLS_VERSION 2
class IServer;
@@ -61,6 +61,13 @@ namespace SourceMod
* @return IServer pointer, or NULL if SDKTools was unable to find one.
*/
virtual IServer* GetIServer() = 0;
/**
* @brief Returns a pointer to game's CGameRules class.
*
* @return CGameRules pointer or NULL if not found.
*/
virtual void* GetGameRules() = 0;
};
}