blob: e18f50849155857d9b276dbcd5963d403b0cd592 (
plain)
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
|
#include "Burger.h"
#include "T2PluginSpecifier.h"
#include "../Common/FoodDef.h"
#include "../Common/FoodPlugin.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
BEGIN_MESSAGE_MAP(CBurgerApp, CWinApp)
END_MESSAGE_MAP()
CBurgerApp::CBurgerApp() {
}
CBurgerApp theApp;
FoodPlugin *sFoodPlugin;
FoodDef *sFoodDef;
extern "C" void *AFX_EXT_API CALLBACK ConstructProgramPlugin(T2PluginSpecifier *inSpecifier) {
if (!sFoodPlugin) {
#line 88
sFoodPlugin = new FoodPlugin('TnPl', inSpecifier);
}
return sFoodPlugin;
}
extern "C" void *AFX_EXT_API CALLBACK ConstructTemplatePlugin(T2PluginSpecifier *inSpecifier, CResFile *inResFile, T2WorldDef *inWorldDef, T2TenantPlugin *inPlugin) {
if (!sFoodDef) {
#line 101
sFoodDef = new FoodDef('TnDf', *inSpecifier, inResFile, inWorldDef, inPlugin);
}
return sFoodDef;
}
extern "C" void *AFX_EXT_API CALLBACK DestructProgramPlugin() {
delete sFoodPlugin;
sFoodPlugin = NULL;
delete sFoodDef;
sFoodDef = NULL;
return NULL;
}
extern "C" T2PluginSpecifier *AFX_EXT_API CALLBACK GetAttr(T2PluginSpecifier *inSpecifier, CResFile *inResFile, T2WorldDef *inWorldDef, T2TenantPlugin *inPlugin) {
#line 120
T2PluginSpecifier *specifier = new T2PluginSpecifier;
specifier->mPluginName = "Burgar";
specifier->mType = 'TnPl';
specifier->mAttrib = 0xFFFFFFFF;
specifier->mGameLevel = 0;
return specifier;
}
|