1.1 --- a/sourcemm/CPlugin.h Fri Aug 12 17:33:31 2005 +0000
1.2 +++ b/sourcemm/CPlugin.h Fri Aug 12 17:33:59 2005 +0000
1.3 @@ -21,8 +21,8 @@
1.4 #include <convar.h>
1.5 #include "IPluginManager.h"
1.6 #include "oslink.h"
1.7 -#include <list>
1.8 -#include <string>
1.9 +#include "smm_list.h"
1.10 +#include "smm_string.h"
1.11
1.12 /**
1.13 * History of plugin versions: (M=min, C=current)
1.14 @@ -30,10 +30,12 @@
1.15 * 2: Added GetLogTag()
1.16 * 3: Moved GetApiVersion() to top (2005-04-16)
1.17 * 4: Added AllPluginsLoaded() callback (2005-04-18)
1.18 - * MC 5: Bumped version for SourceHook V4 (2005-05-01)
1.19 + * 5: Bumped version for SourceHook V4 (2005-05-01)
1.20 + * 6: Added functions for console printing (2005-05-26)
1.21 + * MC 7: Changed template libraries (2005-08-11)
1.22 */
1.23
1.24 -#define PLAPI_MIN_VERSION 5
1.25 +#define PLAPI_MIN_VERSION 6
1.26
1.27 namespace SourceMM
1.28 {
1.29 @@ -52,14 +54,14 @@
1.30 CPlugin();
1.31 public:
1.32 PluginId m_Id;
1.33 - std::string m_File;
1.34 + String m_File;
1.35 Pl_Status m_Status;
1.36 PluginId m_Source;
1.37 ISmmPlugin *m_API;
1.38 HINSTANCE m_Lib;
1.39 factories fac_list;
1.40 - std::list<ConCommandBase *> m_Cvars;
1.41 - std::list<ConCommandBase *> m_Cmds;
1.42 + List<ConCommandBase *> m_Cvars;
1.43 + List<ConCommandBase *> m_Cmds;
1.44 };
1.45 public:
1.46 CPluginManager();
1.47 @@ -100,8 +102,8 @@
1.48 bool Retry(PluginId id, char *error, size_t len);
1.49
1.50 //Internal iterators
1.51 - std::list<SourceMM::CPluginManager::CPlugin *>::iterator _begin();
1.52 - std::list<SourceMM::CPluginManager::CPlugin *>::iterator _end();
1.53 + List<SourceMM::CPluginManager::CPlugin *>::iterator _begin();
1.54 + List<SourceMM::CPluginManager::CPlugin *>::iterator _end();
1.55 private:
1.56 //These are identical internal functions for the wrappers above.
1.57 CPlugin *_Load(const char *file, PluginId source, char *error, size_t maxlen);
1.58 @@ -111,12 +113,12 @@
1.59 void UnregAllConCmds(CPlugin *pl);
1.60 private:
1.61 PluginId m_LastId;
1.62 - std::list<CPlugin *> m_Plugins;
1.63 + List<CPlugin *> m_Plugins;
1.64 bool m_AllLoaded;
1.65 };
1.66 };
1.67
1.68 -typedef std::list<SourceMM::CPluginManager::CPlugin *>::iterator PluginIter;
1.69 +typedef List<SourceMM::CPluginManager::CPlugin *>::iterator PluginIter;
1.70
1.71 /** @brief Singleton for plugin manager */
1.72 extern SourceMM::CPluginManager g_PluginMngr;