-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMain.h
38 lines (32 loc) · 898 Bytes
/
Main.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
#pragma once
#include <metamod/ISmmPlugin.h>
#include <vector>
class IGameFramable;
class IVEngineServer;
class IBotManager;
class IServerGameDLL;
class IPlayerInfoManager;
class IServerPluginHelpers;
class IServerGameClients;
class IEffects;
class IEngineTrace;
class Main : public ISmmPlugin
{
public:
bool Load(PluginId id, ISmmAPI* ismm, char* error, size_t maxlen, bool late);
bool Unload(char* error, size_t len);
const char* GetAuthor();
const char* GetName();
const char* GetDescription();
const char* GetURL();
const char* GetLicense();
const char* GetVersion();
const char* GetDate();
const char* GetLogTag();
void RegisterIGameFramable(IGameFramable* framable);
void UnregisterIGameFramable(IGameFramable* framable);
private:
std::vector<IGameFramable*> _IGameFramables;
void _OnGameFrame(bool simulation);
};
PLUGIN_GLOBALVARS();