forked from Tolfx/tickrate_enabler_tf2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.h
68 lines (52 loc) · 1.84 KB
/
extension.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
63
64
65
66
67
68
/**
* -----------------------------------------------------
* File extension.h
* Authors David Ordnung
* License GPLv3
* Web http://dordnung.de
* -----------------------------------------------------
*
* Copyright (C) 2014 David Ordnung
*
* 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 3 of the License, or
* 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. If not, see <http://www.gnu.org/licenses/>
*/
#ifndef EXTENSION_H
#define EXTENSION_H
#include "smsdk_ext.h"
#include <inetchannel.h>
#include <inetmsghandler.h>
class FileNetMessagesExtension : public SDKExtension
{
public:
/**
* This is called after the initial loading sequence has been processed.
*
* @param error Error message buffer.
* @param maxlength Size of error message buffer.
* @param late Whether or not the module was loaded after map load.
* @return True to succeed loading, false to fail.
*/
virtual bool SDK_OnLoad(char *error, size_t maxlength, bool late);
/**
* This is called right before the extension is unloaded.
*/
virtual void SDK_OnUnload();
};
extern IForward* g_hReceived;
extern IForward* g_hRequested;
extern IForward* g_hDenied;
extern IForward* g_hSent;
cell_t FileNetMessages_SendFile(IPluginContext *pContext, const cell_t *params);
cell_t FileNetMessages_RequestFile(IPluginContext *pContext, const cell_t *params);
#endif