-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.h
57 lines (33 loc) · 1.22 KB
/
plugin.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
56
57
#ifndef SOURCECHAT_PLUGIN_H
#define SOURCECHAT_PLUGIN_H
#ifdef _WIN32
#pragma once
#endif
#include <IClientPlugin.h>
class CSourceChatPlugin : public IClientPlugin
{
public:
virtual api_version_t GetAPIVersion();
virtual bool Load( CreateInterfaceFn pfnSvenModFactory, ISvenModAPI *pSvenModAPI, IPluginHelpers *pPluginHelpers );
virtual void PostLoad( bool bGlobalLoad );
virtual void Unload( void );
virtual bool Pause( void );
virtual void Unpause( void );
virtual void GameFrame( client_state_t state, double frametime, bool bPostRunCmd );
virtual void OnFirstClientdataReceived( client_data_t *pcldata, float flTime );
virtual void OnBeginLoading( void );
virtual void OnEndLoading( void );
virtual void OnDisconnect( void );
virtual void Draw( void );
virtual void DrawHUD( float time, int intermission );
virtual const char *GetName( void );
virtual const char *GetAuthor( void );
virtual const char *GetVersion( void );
virtual const char *GetDescription( void );
virtual const char *GetURL( void );
virtual const char *GetDate( void );
virtual const char *GetLogTag( void );
};
extern CSourceChatPlugin g_SourceChatPlugin;
extern CSourceChatPlugin *g_pSourceChatPlugin;
#endif // SOURCECHAT_PLUGIN_H