#include "CResFile.h" #include "T2MoverPlugin.h" T2MoverPlugin::T2MoverPlugin(DWORD type, T2PluginSpecifier& specifier) : T2EquipPlugin(type, specifier) { } /*virtual*/ T2MoverPlugin::~T2MoverPlugin() { } BOOL T2MoverPlugin::LoadAllTemplatePlugin(T2WorldDef* worldDef, T2TemplatePluginDB*) { LoadT2MoverDef(worldDef); return true; } typedef T2TemplatePlugin *(MSVC_STDCALL* ConstructTemplatePluginType) (T2PluginSpecifier *, CResFile *, T2WorldDef *, T2MoverPlugin *); void T2MoverPlugin::LoadT2MoverDef(T2WorldDef* worldDef) { ConstructTemplatePluginType func = (ConstructTemplatePluginType) GetProcAddress((HMODULE) mModuleHandle, "ConstructTemplatePlugin"); #line 26 _ASSERT(func); CResFile resFile; resFile.OpenResource(mModuleHandle, 1, 'MvDf'); T2TemplatePlugin *plugin = func(&mSpecifier, &resFile, worldDef, this); mTemplatePlugin = plugin; }