mmsplugin.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * vim: set ts=4 sw=4 tw=99 noet :
  3. * ======================================================
  4. * Metamod:Source Stub Plugin
  5. * Written by AlliedModders LLC.
  6. * ======================================================
  7. *
  8. * This software is provided 'as-is', without any express or implied warranty.
  9. * In no event will the authors be held liable for any damages arising from
  10. * the use of this software.
  11. *
  12. * This stub plugin is public domain.
  13. */
  14. #ifndef _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
  15. #define _INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_
  16. #include <ISmmPlugin.h>
  17. #if defined WIN32 && !defined snprintf
  18. #define snprintf _snprintf
  19. #endif
  20. class DynSchema : public ISmmPlugin
  21. {
  22. public:
  23. bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
  24. bool Unload(char *error, size_t maxlen);
  25. bool Pause(char *error, size_t maxlen);
  26. bool Unpause(char *error, size_t maxlen);
  27. void AllPluginsLoaded();
  28. bool Hook_LevelInitPost(const char *pMapName, char const *pMapEntities, char const *pOldLevel,
  29. char const *pLandmarkName, bool loadGame, bool background);
  30. public:
  31. const char *GetAuthor();
  32. const char *GetName();
  33. const char *GetDescription();
  34. const char *GetURL();
  35. const char *GetLicense();
  36. const char *GetVersion();
  37. const char *GetDate();
  38. const char *GetLogTag();
  39. };
  40. extern DynSchema g_Plugin;
  41. PLUGIN_GLOBALVARS();
  42. #endif //_INCLUDE_METAMOD_SOURCE_STUB_PLUGIN_H_