gameconfs can now inherit properly with a new trie replace function

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401063
This commit is contained in:
David Anderson
2007-07-08 03:17:29 +00:00
parent c6a147346f
commit a2617e5644
6 changed files with 35 additions and 8 deletions
+11 -1
View File
@@ -4,7 +4,7 @@
#include <IShareSys.h>
#define SMINTERFACE_ADTFACTORY_NAME "IADTFactory"
#define SMINTERFACE_ADTFACTORY_VERSION 1
#define SMINTERFACE_ADTFACTORY_VERSION 2
/**
* @file IADTFactory.h
@@ -55,6 +55,16 @@ namespace SourceMod
* memory.
*/
virtual void Destroy() =0;
/**
* @brief Inserts a key/value pair, replacing an old inserted
* value if it already exists.
*
* @param key Key string (null terminated).
* @param value Value pointer (may be anything).
* @return True on success, false on failure.
*/
virtual bool Replace(const char *key, void *value) =0;
};
class IADTFactory : public SMInterface