1.1 --- a/core/AdminCache.h Fri Aug 10 01:07:07 2007 +0000
1.2 +++ b/core/AdminCache.h Fri Aug 10 04:53:30 2007 +0000
1.3 @@ -105,6 +105,7 @@
1.4 public: //SMGlobalClass
1.5 void OnSourceModStartup(bool late);
1.6 void OnSourceModAllInitialized();
1.7 + void OnSourceModLevelChange(const char *mapName);
1.8 void OnSourceModShutdown();
1.9 void OnSourceModPluginsLoaded();
1.10 public: //IAdminSystem
1.11 @@ -151,6 +152,9 @@
1.12 bool CheckAdminFlags(AdminId id, FlagBits bits);
1.13 bool CanAdminTarget(AdminId id, AdminId target);
1.14 void SetAdminFlags(AdminId id, AccessMode mode, FlagBits bits);
1.15 + bool FindFlag(const char *str, AdminFlag *pFlag);
1.16 + bool FindFlag(char c, AdminFlag *pAdmFlag);
1.17 + FlagBits ReadFlagString(const char *flags, const char **end);
1.18 public:
1.19 bool IsValidAdmin(AdminId id);
1.20 private:
1.21 @@ -161,6 +165,7 @@
1.22 void DumpCommandOverrideCache(OverrideType type);
1.23 Trie *GetMethodByIndex(unsigned int index);
1.24 bool GetMethodIndex(const char *name, unsigned int *_index);
1.25 + void NameFlag(const char *str, AdminFlag flag);
1.26 public:
1.27 BaseStringTable *m_pStrings;
1.28 BaseMemTable *m_pMemory;
1.29 @@ -179,6 +184,7 @@
1.30 int m_FreeUserList;
1.31 bool m_InvalidatingAdmins;
1.32 bool m_destroying;
1.33 + Trie *m_pLevelNames;
1.34 };
1.35
1.36 extern AdminCache g_Admins;