-
Notifications
You must be signed in to change notification settings - Fork 11
/
cssdm_main.h
62 lines (55 loc) · 2.16 KB
/
cssdm_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* vim: set ts=4 :
* ===============================================================
* CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC.
* By David "BAILOPAN" Anderson
* All rights reserved.
* ===============================================================
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA 02110-1301 USA
*
* Version: $Id$
*/
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
#define _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
/**
* @file extension.h
* @brief Sample extension code header.
*/
#include <smsdk_ext.h>
#include <IBinTools.h>
/**
* @brief Sample implementation of the SDK Extension.
* Note: Uncomment one of the pre-defined virtual functions in order to use it.
*/
class Deathmatch : public SDKExtension
{
public:
virtual bool SDK_OnLoad(char *error, size_t maxlength, bool late);
virtual void SDK_OnUnload();
virtual void SDK_OnAllLoaded();
//virtual void SDK_OnPauseChange(bool paused);
virtual bool QueryRunning(char *error, size_t maxlength);
bool QueryInterfaceDrop(SMInterface *pInterface);
void NotifyInterfaceDrop(SMInterface *pInterface);
const char *GetExtensionVerString();
public:
virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late);
//virtual bool SDK_OnMetamodUnload(char *error, size_t maxlength);
//virtual bool SDK_OnMetamodPauseChange(bool paused, char *error, size_t maxlength);
};
extern Deathmatch g_DM;
#endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_