Updated some CS:GO gamedata.
1 #ifndef _INCLUDE_SOURCEMOD_NATIVE_OWNER_H_
2 #define _INCLUDE_SOURCEMOD_NATIVE_OWNER_H_
4 #include <sp_vm_types.h>
6 #include "common_logic.h"
11 using namespace SourceMod;
15 WeakNative(IPlugin *plugin, uint32_t index) :
16 pl(plugin), idx(index), entry(NULL)
21 WeakNative(IPlugin *plugin, uint32_t index, NativeEntry *pEntry) :
22 pl(plugin), idx(index), entry(pEntry)
32 using namespace SourceHook;
39 virtual void DropEverything();
41 void AddNatives(const sp_nativeinfo_t *info);
43 void SetMarkSerial(unsigned int serial);
44 unsigned int GetMarkSerial();
45 void PropagateMarkSerial(unsigned int serial);
47 void AddDependent(CPlugin *pPlugin);
48 void AddWeakRef(const WeakNative & ref);
49 void DropRefsTo(CPlugin *pPlugin);
50 void AddReplacedNative(NativeEntry *pEntry);
52 void DropWeakRefsTo(CPlugin *pPlugin);
53 void UnbindWeakRef(const WeakNative & ref);
55 List<CPlugin *> m_Dependents;
56 unsigned int m_nMarkSerial;
57 List<WeakNative> m_WeakRefs;
58 List<NativeEntry *> m_Natives;
59 List<NativeEntry *> m_ReplacedNatives;
62 extern CNativeOwner g_CoreNatives;
64 #endif //_INCLUDE_SOURCEMOD_NATIVE_OWNER_H_