#include <public/IGameConfigs.h>
Inherits SourceMod::SMInterface.
Inheritance diagram for SourceMod::IGameConfigManager:
Public Member Functions | |
| const char * | GetInterfaceName () |
| Must return a string defining the interface's unique name. | |
| unsigned int | GetInterfaceVersion () |
| Must return an integer defining the interface's version. | |
| virtual bool | LoadGameConfigFile (const char *file, IGameConfig **pConfig, char *error, size_t maxlength)=0 |
| Loads or finds an already loaded game config file. | |
| virtual void | CloseGameConfigFile (IGameConfig *cfg)=0 |
| Closes an IGameConfig pointer. Since a file can be loaded more than once, the file will not actually be removed from memory until it is closed once for each call to LoadGameConfigfile(). | |
| virtual IGameConfig * | ReadHandle (Handle_t hndl, IdentityToken_t *ident, HandleError *err)=0 |
| Reads an GameConfig Handle. | |
| virtual void | AddUserConfigHook (const char *sectionname, ITextListener_SMC *listener)=0 |
| Adds a custom gamedata section hook. | |
| virtual void | RemoveUserConfigHook (const char *sectionname, ITextListener_SMC *listener)=0 |
| Removes a custom gamedata section hook. | |
Definition at line 97 of file IGameConfigs.h.
| virtual bool SourceMod::IGameConfigManager::LoadGameConfigFile | ( | const char * | file, | |
| IGameConfig ** | pConfig, | |||
| char * | error, | |||
| size_t | maxlength | |||
| ) | [pure virtual] |
Loads or finds an already loaded game config file.
| file | File to load. The path must be relative to the 'gamedata' folder and the extension should be omitted. | |
| pConfig | Pointer to store the game config pointer. Pointer will be valid even on failure. | |
| error | Optional error message buffer. | |
| maxlength | Maximum length of the error buffer. |
| virtual void SourceMod::IGameConfigManager::CloseGameConfigFile | ( | IGameConfig * | cfg | ) | [pure virtual] |
Closes an IGameConfig pointer. Since a file can be loaded more than once, the file will not actually be removed from memory until it is closed once for each call to LoadGameConfigfile().
| cfg | Pointer to the IGameConfig to close. |
| virtual IGameConfig* SourceMod::IGameConfigManager::ReadHandle | ( | Handle_t | hndl, | |
| IdentityToken_t * | ident, | |||
| HandleError * | err | |||
| ) | [pure virtual] |
Reads an GameConfig Handle.
| hndl | Handle to read. | |
| ident | Identity of the owner (can be NULL). | |
| err | Optional error buffer. |
| virtual void SourceMod::IGameConfigManager::AddUserConfigHook | ( | const char * | sectionname, | |
| ITextListener_SMC * | listener | |||
| ) | [pure virtual] |
Adds a custom gamedata section hook.
| sectionname | Section name to hook. | |
| listener | Listener callback. |
| virtual void SourceMod::IGameConfigManager::RemoveUserConfigHook | ( | const char * | sectionname, | |
| ITextListener_SMC * | listener | |||
| ) | [pure virtual] |
Removes a custom gamedata section hook.
| sectionname | Section name to unhook. | |
| listener | Listener callback. |
1.5.1