added gameevents to the publicly available interfaces

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40459
This commit is contained in:
David Anderson 2007-02-08 01:11:45 +00:00
parent 7a29aad6fa
commit 67c76a9380
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ IServerGameDLL *gamedll = NULL;
IServerGameClients *serverClients = NULL;
ISmmPluginManager *g_pMMPlugins = NULL;
CGlobalVars *gpGlobals = NULL;
IGameEventManager2 *gameevents = NULL;
PLUGIN_EXPOSE(SourceMod, g_SourceMod_Core);
@ -32,6 +33,7 @@ bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen
GET_V_IFACE_ANY(serverFactory, gamedll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL);
GET_V_IFACE_CURRENT(engineFactory, engine, IVEngineServer, INTERFACEVERSION_VENGINESERVER);
GET_V_IFACE_CURRENT(serverFactory, serverClients, IServerGameClients, INTERFACEVERSION_SERVERGAMECLIENTS);
GET_V_IFACE_CURRENT(engineFactory, gameevents, IGameEventManager2, INTERFACEVERSION_GAMEEVENTSMANAGER2);
if ((g_pMMPlugins = (ISmmPluginManager *)g_SMAPI->MetaFactory(MMIFACE_PLMANAGER, NULL, NULL)) == NULL)
{

View File

@ -16,6 +16,7 @@
#include <ISmmPlugin.h>
#include <eiface.h>
#include <igameevents.h>
/**
* @file Contains wrappers around required Metamod:Source API exports
@ -46,6 +47,7 @@ extern IServerGameDLL *gamedll;
extern IServerGameClients *serverClients;
extern ISmmPluginManager *g_pMMPlugins;
extern CGlobalVars *gpGlobals;
extern IGameEventManager2 *gameevents;
PLUGIN_GLOBALVARS();