Added custom gamedata section parsing to GameConfigs.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402429
This commit is contained in:
+21
-2
@@ -34,6 +34,7 @@
|
||||
|
||||
#include <IShareSys.h>
|
||||
#include <IHandleSys.h>
|
||||
#include <ITextParsers.h>
|
||||
|
||||
/**
|
||||
* @file IGameConfigs.h
|
||||
@@ -41,7 +42,7 @@
|
||||
*/
|
||||
|
||||
#define SMINTERFACE_GAMECONFIG_NAME "IGameConfigManager"
|
||||
#define SMINTERFACE_GAMECONFIG_VERSION 3
|
||||
#define SMINTERFACE_GAMECONFIG_VERSION 4
|
||||
|
||||
class SendProp;
|
||||
|
||||
@@ -141,7 +142,25 @@ namespace SourceMod
|
||||
*/
|
||||
virtual IGameConfig *ReadHandle(Handle_t hndl,
|
||||
IdentityToken_t *ident,
|
||||
HandleError *err) =0;
|
||||
HandleError *err) =0;
|
||||
|
||||
/**
|
||||
* @brief Adds a custom gamedata section hook.
|
||||
*
|
||||
* @param sectionname Section name to hook.
|
||||
* @param listener Listener callback.
|
||||
* @noreturn
|
||||
*/
|
||||
virtual void AddUserConfigHook(const char *sectionname, ITextListener_SMC *listener) =0;
|
||||
|
||||
/**
|
||||
* @brief Removes a custom gamedata section hook.
|
||||
*
|
||||
* @param sectionname Section name to unhook.
|
||||
* @param listener Listener callback.
|
||||
* @noreturn
|
||||
*/
|
||||
virtual void RemoveUserConfigHook(const char *sectionname, ITextListener_SMC *listener) =0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user