Changed TFWeaponSlot enum description (r=me).
3 * =============================================================================
4 * SourceMod Extension Code for Metamod:Source
5 * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
6 * =============================================================================
8 * This program is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU General Public License, version 3.0, as published by the
10 * Free Software Foundation.
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
20 * As a special exception, AlliedModders LLC gives you permission to link the
21 * code of this program (as well as its derivative works) to "Half-Life 2," the
22 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
23 * by the Valve Corporation. You must obey the GNU General Public License in
24 * all respects for all other code used. Additionally, AlliedModders LLC grants
25 * this exception to all derivative works. AlliedModders LLC defines further
26 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
27 * or <http://www.sourcemod.net/license.php>.
32 #ifndef _INCLUDE_SOURCEMOD_CONFIG_H_
33 #define _INCLUDE_SOURCEMOD_CONFIG_H_
38 * @brief Acquires the interfaces enabled at the bottom of this header.
40 * @param error Buffer to store error message.
41 * @param maxlength Maximum size of the error buffer.
42 * @return True on success, false on failure.
43 * On failure, a null-terminated string will be stored
44 * in the error buffer, if the buffer is non-NULL and
45 * greater than 0 bytes in size.
47 bool SM_AcquireInterfaces(char *error, size_t maxlength);
50 * @brief Sets each acquired interface to NULL.
52 void SM_UnsetInterfaces();
55 * Enable interfaces you want to use here by uncommenting lines.
56 * These interfaces are all part of SourceMod's core.
58 //#define SMEXT_ENABLE_FORWARDSYS
59 //#define SMEXT_ENABLE_HANDLESYS
60 //#define SMEXT_ENABLE_PLAYERHELPERS
61 //#define SMEXT_ENABLE_DBMANAGER
62 //#define SMEXT_ENABLE_GAMECONF
63 //#define SMEXT_ENABLE_MEMUTILS
64 //#define SMEXT_ENABLE_GAMEHELPERS
65 //#define SMEXT_ENABLE_TIMERSYS
66 //#define SMEXT_ENABLE_THREADER
67 //#define SMEXT_ENABLE_LIBSYS
68 //#define SMEXT_ENABLE_MENUS
69 //#define SMEXT_ENABLE_ADTFACTORY
70 //#define SMEXT_ENABLE_PLUGINSYS
71 //#define SMEXT_ENABLE_ADMINSYS
72 //#define SMEXT_ENABLE_TEXTPARSERS
73 //#define SMEXT_ENABLE_TRANSLATOR
77 * There is no need to edit below.
80 #include <IShareSys.h>
81 #include <IExtensionSys.h>
82 extern SourceMod::IExtension *myself;
83 extern SourceMod::IExtensionManager *smexts;
84 extern SourceMod::IShareSys *sharesys;
86 #include <ISourceMod.h>
87 extern SourceMod::ISourceMod *sm_main;
89 #if defined SMEXT_ENABLE_FORWARDSYS
90 #include <IForwardSys.h>
91 extern SourceMod::IForwardManager *sm_forwards;
94 #if defined SMEXT_ENABLE_HANDLESYS
95 #include <IHandleSys.h>
96 extern SourceMod::IHandleSys *sm_handlesys;
99 #if defined SMEXT_ENABLE_PLAYERHELPERS
100 #include <IPlayerHelpers.h>
101 extern SourceMod::IPlayerManager *sm_players;
104 #if defined SMEXT_ENABLE_DBMANAGER
105 #include <IDBDriver.h>
106 extern SourceMod::IDBManager *sm_dbi;
109 #if defined SMEXT_ENABLE_GAMECONF
110 #include <IGameConfigs.h>
111 extern SourceMod::IGameConfigManager *sm_gameconfs;
114 #if defined SMEXT_ENABLE_MEMUTILS
115 #include <IMemoryUtils.h>
116 extern SourceMod::IMemoryUtils *sm_memutils;
119 #if defined SMEXT_ENABLE_GAMEHELPERS
120 #include <IGameHelpers.h>
121 extern SourceMod::IGameHelpers *sm_gamehelpers;
124 #if defined SMEXT_ENABLE_TIMERSYS
125 #include <ITimerSystem.h>
126 extern SourceMod::ITimerSystem *sm_timersys;
129 #if defined SMEXT_ENABLE_THREADER
130 #include <IThreader.h>
131 extern SourceMod::IThreader *sm_threader;
134 #if defined SMEXT_ENABLE_LIBSYS
135 #include <ILibrarySys.h>
136 extern SourceMod::ILibrarySys *sm_libsys;
139 #if defined SMEXT_ENABLE_PLUGINSYS
140 #include <IPluginSys.h>
141 extern SourceMod::IPluginManager *sm_plsys;
144 #if defined SMEXT_ENABLE_MENUS
145 #include <IMenuManager.h>
146 extern SourceMod::IMenuManager *sm_menus;
149 #if defined SMEXT_ENABLE_ADMINSYS
150 #include <IAdminSystem.h>
151 extern SourceMod::IAdminSystem *sm_adminsys;
154 #if defined SMEXT_ENABLE_TEXTPARSERS
155 #include <ITextParsers.h>
156 extern SourceMod::ITextParsers *sm_text;
159 #if defined SMEXT_ENABLE_TRANSLATOR
160 #include <ITranslator.h>
161 extern SourceMod::ITranslator *sm_translator;
164 #endif //_INCLUDE_SOURCEMOD_CONFIG_H_