summaryrefslogtreecommitdiff
path: root/src/Plugins/ToolPalette/DefaultToolPalette/DefaultToolPalette.cpp
blob: 4f654e3ae508a3778c5a0e6929289534a41ef1ad (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
// DefaultToolPalette.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"

#define ATOI_KLUDGE
#include "../../../T2DLL/UT2Utils.h"
#include "../../../T2DLL/T2PaletteAnimeDef.h"
#include "../../../T2DLL/LAttachment.h"
#include "../../../T2DLL/LAttachable.h"
#include "../../../T2DLL/CLink.h"
#include "../../../T2DLL/LArray.h"
#include "../../../T2DLL/LBroadcaster.h"
#include "../../../T2DLL/LListener.h"
#include "../../../T2DLL/T2BitImage.h"
#include "../../../T2DLL/T2ImageObj.h"
#include "../../../T2DLL/T2SpriteObj.h"
#include "../../../T2DLL/Wave.h"
#include "../../../T2DLL/T2SoundPlayer.h"
#include "../../../T2DLL/T2Archive.h"
#include "../../../T2DLL/T2FireWork.h"
#include "../../../T2DLL/T2DlgItemButtonBase.h"
#include "../../../T2DLL/T2DlgItemIButton.h"
#include "../../../T2DLL/T2DlgItemOK.h"
#include "../../../T2DLL/T2DlgItemCANCEL.h"
#include "../../../T2DLL/T2DlgItemTButton.h"
#include "../../../T2DLL/T2DlgItemICheck.h"
#include "../../../T2DLL/T2DlgItemCheck.h"
#include "../../../T2DLL/T2DlgItemScr.h"
#include "../../../T2DLL/T2DlgItemHScr.h"
#include "../../../T2DLL/T2DlgItemVScr.h"
#include "../../../T2DLL/T2DlgItemBox.h"
#include "../../../T2DLL/T2DlgItemText.h"
#include "../../../T2DLL/T2DlgItemGageBase.h"
#include "../../../T2DLL/T2DlgItemStressGage.h"
#include "../../../T2DLL/T2DlgItemPPLEvalGage.h"
#include "../../../T2DLL/T2DlgItemBelongGage.h"
#include "../../../T2DLL/T2DlgItemCustomerGage.h"
#include "../../../T2DLL/T2DlgItemProfitsGage.h"
#include "../../../T2DLL/T2DlgItemImageTable.h"
#include "../../../T2DLL/T2DlgItemImage.h"
#include "../../../T2DLL/CToggleButtonDisabled.h"
#include "../../../T2DLL/T2VerticalTable.h"
#include "../../../T2DLL/T2MovieTable.h"
#include "../../../T2DLL/T2GuestroomTable.h"
#include "../../../T2DLL/T2HallEventTable.h"
#include "../../../T2DLL/CTokenizer.h"
#include "../../../T2DLL/T2Dialog.h"
#include "../../../T2DLL/T2TowerMessage.h"
#include "../../../T2DLL/T2DateTime.h"
#include "../../../T2DLL/T2PluginSpecifier.h"
#include "../../../T2DLL/CResFile.h"
#include "../../../T2DLL/CPlugin.h"
#include "../../../T2DLL/CFilePlugin.h"
#include "../../../T2DLL/CFilePluginList.h"
#include "../../../T2DLL/CFilePluginDB.h"
#include "../../../T2DLL/CResourcePlugin.h"
#include "../../../T2DLL/T2SubPlugin.h"
#include "../../../T2DLL/T2AdvertiseTable.h"
#include "../../../T2DLL/T2AdvertisePlugin.h"
#include "../../../T2DLL/T2HallEventPlugin.h"
#include "../../../T2DLL/T2MoviePlugin.h"
#include "../../../T2DLL/T2EquipInfoDialog.h"
#include "../../../T2DLL/T2TenantInfoDialog.h"
#include "../../../T2DLL/T2Object.h"
#include "../../../T2DLL/T2DrawableObject.h"
#include "../../../T2DLL/T2ObjectArray.h"
#include "../../../T2DLL/CDefRsrcPlugin.h"
#include "../../../T2DLL/T2TemplatePlugin.h"
#include "../../../T2DLL/T2HaveOutViewObject.h"
#include "../../../T2DLL/T2TemplatePluginList.h"
#include "../../../T2DLL/CProgramPlugin.h"
#include "../../../T2DLL/T2TemplatePluginDB.h"
#include "../../../T2DLL/T2ToolPlugin.h"
#include "../../../T2DLL/T2EquipPlugin.h"
#include "../../../T2DLL/T2TenantPlugin.h"
#include "../../../T2DLL/T2MoverPlugin.h"
#include "../../../T2DLL/T2OuterObjPlugin.h"
#include "../../../T2DLL/UT2Coordinate.h"
#include "../../../T2DLL/T2PeoplePtrList.h"
#include "../../../T2DLL/T2ToolDef.h"
#include "../../../T2DLL/T2EquipDef.h"
#include "../../../T2DLL/T2TenantDef.h"
#include "../../../T2DLL/T2MoverDef.h"
#include "../../../T2DLL/T2OuterObjDef.h"
#include "../../../T2DLL/T2SilhouetteDef.h"
#include "../../../T2DLL/T2MatterDef.h"
#include "../../../T2DLL/T2PeopleDef.h"
#include "../../../T2DLL/T2Pool.h"
#include "../../../T2DLL/T2PlaceParamDef.h"
#include "../../../T2DLL/T2TenantMemberTableDef.h"
#include "../../../T2DLL/T2TenantMemberDef.h"
#include "../../../T2DLL/T2PeopleTypeArray.h"
#include "../../../T2DLL/T2PeopleTimeZoneList.h"
#include "../../../T2DLL/T2PeopleDemandList.h"
#include "../../../T2DLL/T2PeopleType.h"
#include "../../../T2DLL/T2Equip.h"
#include "../../../T2DLL/T2Tenant.h"
#include "../../../T2DLL/T2OutObj.h"
#include "../../../T2DLL/T2Matter.h"
#include "../../../T2DLL/T2People.h"
#include "../../../T2DLL/T2PeopleArray.h"
#include "../../../T2DLL/T2PeopleArrayList.h"
#include "../../../T2DLL/T2Request.h"
#include "../../../T2DLL/T2Mover.h"
#include "../../../T2DLL/T2RegistedTenantDB.h"
#include "../../../T2DLL/T2OuterObjList.h"
#include "../../../T2DLL/T2RequestIDArray.h"
#include "../../../T2DLL/T2RequestArray.h"
#include "../../../T2DLL/T2RequestArrayList.h"
#include "../../../T2DLL/T2MoverModule.h"
#include "../../../T2DLL/T2MoverModuleList.h"
#include "../../../T2DLL/T2StairModule.h"
#include "../../../T2DLL/T2StairModuleList.h"
#include "../../../T2DLL/T2ElevatorModule.h"
#include "../../../T2DLL/T2ElvModuleList.h"
#include "../../../T2DLL/T2CrossEquipArray.h"
#include "../../../T2DLL/T2TenantCEArray.h"
#include "../../../T2DLL/T2RouteCEArray.h"
#include "../../../T2DLL/T2FloorCEArray.h"
#include "../../../T2DLL/T2MoverCEArray.h"
#include "../../../T2DLL/T2TenantArray.h"
#include "../../../T2DLL/T2TenantArrayList.h"
#include "../../../T2DLL/T2MoverArray.h"
#include "../../../T2DLL/T2MoverArrayList.h"
#include "../../../T2DLL/T2PeopleLinkIterator.h"
#include "../../../T2DLL/T2UnitInfo.h"
#include "../../../T2DLL/T2FloorInfo.h"
#include "../../../T2DLL/T2FInfoAreaIterator.h"
#include "../../../T2DLL/T2FInfoPtIterator.h"
#include "../../../T2DLL/UT2BkgndInfo.h"
#include "../../../T2DLL/T2EquipPtrList.h"
#include "../../../T2DLL/T2FloorPtrList.h"
#include "../../../T2DLL/T2RoutingTableElem.h"
#include "../../../T2DLL/T2MoverRoutingTable.h"
#include "../../../T2DLL/T2RoutingTable.h"
#include "../../../T2DLL/T2RouteNavigator.h"
#include "../../../T2DLL/T2WorldPlugin.h"
#include "../../../T2DLL/T2WorldDef.h"
#include "../../../T2DLL/T2TrafficInfo.h"
#include "../../../T2DLL/T2NameList.h"
#include "../../../T2DLL/T2PeopleLoader.h"
#include "../../../T2DLL/T2MsgWindowCallback.h"
#include "../../../T2DLL/T2Settlement.h"
#include "../../../T2DLL/T2Name.h"
#include "../../../T2DLL/T2EventItem.h"
#include "../../../T2DLL/T2Maru_Reggae.h"
#include "../../../T2DLL/T2RegistedTenantIterator.h"
#include "../../../T2DLL/T2OptionPlugin.h"
#include "../../../T2DLL/T2OptionPluginList.h"
#include "../../../T2DLL/T2ToolWindow.h"
#include "../../../T2DLL/T2ToolCallback.h"
#include "../../../T2DLL/T2TowerEvent.h"
#include "../../../T2DLL/T2MetroRailway.h"
#include "../../../T2DLL/T2PaletteAnime.h"
#include "../../../T2DLL/T2StewardDialog.h"
#include "../../../T2DLL/T2ClassFactory.h"

#include "DefaultToolPalette.h"
#include "ToolPalette.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

//
//	Note!
//
//		If this DLL is dynamically linked against the MFC
//		DLLs, any functions exported from this DLL which
//		call into MFC must have the AFX_MANAGE_STATE macro
//		added at the very beginning of the function.
//
//		For example:
//
//		extern "C" BOOL PASCAL EXPORT ExportedFunction()
//		{
//			AFX_MANAGE_STATE(AfxGetStaticModuleState());
//			// normal function body here
//		}
//
//		It is very important that this macro appear in each
//		function, prior to any calls into MFC.  This means that
//		it must appear as the first statement within the
//		function, even before any object variable declarations
//		as their constructors may generate calls into the MFC
//		DLL.
//
//		Please see MFC Technical Notes 33 and 58 for additional
//		details.
//

/////////////////////////////////////////////////////////////////////////////
// CDefaultToolPaletteApp

BEGIN_MESSAGE_MAP(CDefaultToolPaletteApp, CWinApp)
	//{{AFX_MSG_MAP(CDefaultToolPaletteApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDefaultToolPaletteApp construction

CDefaultToolPaletteApp::CDefaultToolPaletteApp()
{
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CDefaultToolPaletteApp object

CDefaultToolPaletteApp theApp;

ToolPalette *sToolPalette;

void *CALLBACK ConstructProgramPlugin(T2PluginSpecifier *inSpecifier) {
    if (!sToolPalette) {
#line 47
        sToolPalette = new ToolPalette;
    }

    return sToolPalette;
}

void *CALLBACK DestructProgramPlugin() {
    sToolPalette = NULL;
    return NULL;
}

T2PluginSpecifier *GetAttr(T2PluginSpecifier *inSpecifier, CResFile *inResFile, T2WorldDef *inWorldDef, T2TenantPlugin *inPlugin) {
#line 59
    T2PluginSpecifier *specifier = new T2PluginSpecifier;
    specifier->mPluginName = "Default Tool palette";
    specifier->mType = 'TOPL';
    specifier->mID = 1000;
    specifier->mAttrib = 0xFFFFFFFF;
    specifier->mGameLevel = 0;
    return specifier;
}