core/sourcemm_api.cpp
changeset 644 2a90d4324fc0
parent 566 7640076104f5
child 653 ef60870067ff
     1.1 --- a/core/sourcemm_api.cpp	Sat Mar 17 20:25:08 2007 +0000
     1.2 +++ b/core/sourcemm_api.cpp	Sat Mar 17 23:03:44 2007 +0000
     1.3 @@ -27,6 +27,7 @@
     1.4  IUniformRandomStream *engrandom = NULL;
     1.5  CallClass<IVEngineServer> *enginePatch = NULL;
     1.6  CallClass<IServerGameDLL> *gamedllPatch = NULL;
     1.7 +IPlayerInfoManager *playerinfo = NULL;
     1.8  
     1.9  PLUGIN_EXPOSE(SourceMod, g_SourceMod_Core);
    1.10  
    1.11 @@ -41,6 +42,9 @@
    1.12  	GET_V_IFACE_CURRENT(engineFactory, gameevents, IGameEventManager2, INTERFACEVERSION_GAMEEVENTSMANAGER2);
    1.13  	GET_V_IFACE_CURRENT(engineFactory, engrandom, IUniformRandomStream, VENGINE_SERVER_RANDOM_INTERFACE_VERSION);
    1.14  
    1.15 +	/* :TODO: Make this optional and... make it find earlier versions [?] */
    1.16 +	GET_V_IFACE_CURRENT(serverFactory, playerinfo, IPlayerInfoManager, INTERFACEVERSION_PLAYERINFOMANAGER);
    1.17 +
    1.18  	if ((g_pMMPlugins = (ISmmPluginManager *)g_SMAPI->MetaFactory(MMIFACE_PLMANAGER, NULL, NULL)) == NULL)
    1.19  	{
    1.20  		if (error)