forked from WeSTManCoder/BufferFix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverplugin.h
29 lines (26 loc) · 1.21 KB
/
serverplugin.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
#pragma once
#include "engine/iserverplugin.h"
class CBufferFix : public IServerPluginCallbacks
{
public:
CBufferFix();
~CBufferFix();
// IServerPluginCallbacks methods
virtual bool Load(CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory);
virtual void Unload(void);
virtual void Pause(void);
virtual void UnPause(void);
virtual const char* GetPluginDescription(void);
virtual void LevelInit(char const* pMapName);
virtual void ServerActivate(edict_t* pEdictList, int edictCount, int clientMax);
virtual void GameFrame(bool simulating);
virtual void LevelShutdown(void);
virtual void ClientActive(edict_t* pEntity);
virtual void ClientDisconnect(edict_t* pEntity);
virtual void ClientPutInServer(edict_t* pEntity, char const* playername);
virtual void SetCommandClient(int index);
virtual void ClientSettingsChanged(edict_t* pEdict);
virtual PLUGIN_RESULT ClientConnect(bool* bAllowConnect, edict_t* pEntity, const char* pszName, const char* pszAddress, char* reject, int maxrejectlen);
virtual PLUGIN_RESULT ClientCommand(edict_t* pEntity);
virtual PLUGIN_RESULT NetworkIDValidated(const char* pszUserName, const char* pszNetworkID);
};