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:
+11
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user