Use GetSourceEngineBuild() from MM:S 1.8 legacy API (
bug 4083, r=ds).
1 #ifndef _INCLUDE_SOURCEMOD_NATIVE_OWNER_H_
2 #define _INCLUDE_SOURCEMOD_NATIVE_OWNER_H_
4 #include <sp_vm_types.h>
12 WeakNative(CPlugin *plugin, uint32_t index) :
13 pl(plugin), idx(index), entry(NULL)
18 WeakNative(CPlugin *plugin, uint32_t index, NativeEntry *pEntry) :
19 pl(plugin), idx(index), entry(pEntry)
29 using namespace SourceHook;
36 virtual void DropEverything();
38 void AddNatives(const sp_nativeinfo_t *info);
40 void SetMarkSerial(unsigned int serial);
41 unsigned int GetMarkSerial();
42 void PropogateMarkSerial(unsigned int serial);
44 void AddDependent(CPlugin *pPlugin);
45 void AddWeakRef(const WeakNative & ref);
46 void DropRefsTo(CPlugin *pPlugin);
47 void AddReplacedNative(NativeEntry *pEntry);
49 void DropWeakRefsTo(CPlugin *pPlugin);
50 void UnbindWeakRef(const WeakNative & ref);
52 List<CPlugin *> m_Dependents;
53 unsigned int m_nMarkSerial;
54 List<WeakNative> m_WeakRefs;
55 List<NativeEntry *> m_Natives;
56 List<NativeEntry *> m_ReplacedNatives;
59 #endif //_INCLUDE_SOURCEMOD_NATIVE_OWNER_H_