This repository has been archived by the owner on May 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
qcache_mm.h
55 lines (44 loc) · 1.46 KB
/
qcache_mm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* vim: set ts=4 sw=4 tw=99 noet :
* ======================================================
* Metamod:Source Stub Plugin
* Written by AlliedModders LLC.
* ======================================================
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this software.
*
* This stub plugin is public domain.
*/
#ifndef _INCLUDE_METAMOD_SOURCE_QCACHE_PLUGIN_H_
#define _INCLUDE_METAMOD_SOURCE_QCACHE_PLUGIN_H_
#include <ISmmPlugin.h>
#if defined WIN32 && !defined snprintf
#define snprintf _snprintf
#endif
class QCachePlugin : public ISmmPlugin
{
public:
bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late);
bool Unload(char *error, size_t maxlen);
bool Pause(char *error, size_t maxlen);
bool Unpause(char *error, size_t maxlen);
void AllPluginsLoaded();
const char *GetAuthor();
const char *GetName();
const char *GetDescription();
const char *GetURL();
const char *GetLicense();
const char *GetVersion();
const char *GetDate();
const char *GetLogTag();
};
class QCacheListener : public IMetamodListener
{
void OnLevelInit(char const *pMapName, char const *pMapEntities, char const *pOldLevel, char const *pLandmarkName, bool loadGame, bool background);
};
extern QCachePlugin g_QCachePlugin;
extern QCacheListener g_QCacheListener;
PLUGIN_GLOBALVARS();
#endif //_INCLUDE_METAMOD_SOURCE_QCACHE_PLUGIN_H_