annotate Events.h @ 776:3dc4a9b13c1b

travel struct fixed
author Gloval
date Sun, 24 Mar 2013 00:50:35 +0400
parents 24936a5ff8ca
children d48c762de563
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6 /* 167 */
Ritor1
parents:
diff changeset
7 #pragma pack(push, 1)
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
8 struct EventIndex
0
Ritor1
parents:
diff changeset
9 {
Ritor1
parents:
diff changeset
10 int uEventID;
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
11 int event_sequence_num;
0
Ritor1
parents:
diff changeset
12 unsigned int uEventOffsetInEVT;
Ritor1
parents:
diff changeset
13 };
Ritor1
parents:
diff changeset
14 #pragma pack(pop)
Ritor1
parents:
diff changeset
15
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
16 // raw event struct
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
17 // header
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
18 // size_event 1 header+data
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
19 // event id 2 3
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
20 // event_sequence_num
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
21 // event data
0
Ritor1
parents:
diff changeset
22 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
23 struct _evt_raw
Ritor1
parents:
diff changeset
24 {
310
Gloval
parents: 307
diff changeset
25 unsigned char _e_size;
0
Ritor1
parents:
diff changeset
26 unsigned char v1;
Ritor1
parents:
diff changeset
27 unsigned char v2;
Ritor1
parents:
diff changeset
28 unsigned char v3;
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
29
310
Gloval
parents: 307
diff changeset
30 unsigned char _e_type;
0
Ritor1
parents:
diff changeset
31 unsigned char v5;
Ritor1
parents:
diff changeset
32 unsigned char v6;
Ritor1
parents:
diff changeset
33 unsigned char v7;
Ritor1
parents:
diff changeset
34 unsigned char v8;
Ritor1
parents:
diff changeset
35 unsigned char v9;
Ritor1
parents:
diff changeset
36 unsigned char v10;
Ritor1
parents:
diff changeset
37 unsigned char v11;
Ritor1
parents:
diff changeset
38 unsigned char v12;
Ritor1
parents:
diff changeset
39 unsigned char v13;
Ritor1
parents:
diff changeset
40 unsigned char v14;
Ritor1
parents:
diff changeset
41 unsigned char v15;
Ritor1
parents:
diff changeset
42 unsigned char v16;
Ritor1
parents:
diff changeset
43 unsigned char v17;
Ritor1
parents:
diff changeset
44 unsigned char v18;
Ritor1
parents:
diff changeset
45 unsigned char v19;
Ritor1
parents:
diff changeset
46 unsigned char v20;
Ritor1
parents:
diff changeset
47 unsigned char v21;
Ritor1
parents:
diff changeset
48 unsigned char v22;
Ritor1
parents:
diff changeset
49 unsigned char v23;
Ritor1
parents:
diff changeset
50 unsigned char v24;
Ritor1
parents:
diff changeset
51 unsigned char v25;
Ritor1
parents:
diff changeset
52 unsigned char v26;
Ritor1
parents:
diff changeset
53 unsigned char v27;
Ritor1
parents:
diff changeset
54 unsigned char v28;
Ritor1
parents:
diff changeset
55 unsigned char v29;
Ritor1
parents:
diff changeset
56 unsigned char v30;
Ritor1
parents:
diff changeset
57 unsigned char v31;
Ritor1
parents:
diff changeset
58 unsigned char v32;
Ritor1
parents:
diff changeset
59 unsigned char tail[128];
Ritor1
parents:
diff changeset
60 };
Ritor1
parents:
diff changeset
61 #pragma pop()
Ritor1
parents:
diff changeset
62
Ritor1
parents:
diff changeset
63
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65 /* 310 */
Ritor1
parents:
diff changeset
66 enum EventType
Ritor1
parents:
diff changeset
67 {
Ritor1
parents:
diff changeset
68 EVENT_Exit = 0x1,
Ritor1
parents:
diff changeset
69 EVENT_SpeakInHouse = 0x2,
Ritor1
parents:
diff changeset
70 EVENT_PlaySound = 0x3,
Ritor1
parents:
diff changeset
71 EVENT_MouseOver = 0x4,
Ritor1
parents:
diff changeset
72 EVENT_LocationName = 0x5,
Ritor1
parents:
diff changeset
73 EVENT_MoveToMap = 0x6,
Ritor1
parents:
diff changeset
74 EVENT_OpenChest = 0x7,
Ritor1
parents:
diff changeset
75 EVENT_ShowFace = 0x8,
Ritor1
parents:
diff changeset
76 EVENT_ReceiveDamage = 0x9,
Ritor1
parents:
diff changeset
77 EVENT_SetSnow = 0xA,
Ritor1
parents:
diff changeset
78 EVENT_SetTexture = 0xB,
Ritor1
parents:
diff changeset
79 EVENT_ShowMovie = 0xC,
Ritor1
parents:
diff changeset
80 EVENT_SetSprite = 0xD,
Ritor1
parents:
diff changeset
81 EVENT_Compare = 0xE,
Ritor1
parents:
diff changeset
82 EVENT_ChangeDoorState = 0xF,
Ritor1
parents:
diff changeset
83 EVENT_Add = 0x10,
Ritor1
parents:
diff changeset
84 EVENT_Substract = 0x11,
Ritor1
parents:
diff changeset
85 EVENT_Set = 0x12,
Ritor1
parents:
diff changeset
86 EVENT_SummonMonsters = 0x13,
Ritor1
parents:
diff changeset
87 EVENT_CastSpell = 0x15,
Ritor1
parents:
diff changeset
88 EVENT_SpeakNPC = 0x16,
Ritor1
parents:
diff changeset
89 EVENT_SetFacesBit = 0x17,
Ritor1
parents:
diff changeset
90 EVENT_ToggleActorFlag = 0x18,
Ritor1
parents:
diff changeset
91 EVENT_RandomGoTo = 0x19,
Ritor1
parents:
diff changeset
92 EVENT_InputString = 0x1A,
Ritor1
parents:
diff changeset
93 EVENT_StatusText = 0x1D,
Ritor1
parents:
diff changeset
94 EVENT_ShowMessage = 0x1E,
Ritor1
parents:
diff changeset
95 EVENT_OnTimer = 0x1F,
Ritor1
parents:
diff changeset
96 EVENT_ToggleIndoorLight = 0x20,
Ritor1
parents:
diff changeset
97 EVENT_PressAnyKey = 0x21,
Ritor1
parents:
diff changeset
98 EVENT_SummonItem = 0x22,
Ritor1
parents:
diff changeset
99 EVENT_ForPartyMember = 0x23,
Ritor1
parents:
diff changeset
100 EVENT_Jmp = 0x24,
Ritor1
parents:
diff changeset
101 EVENT_OnMapReload = 0x25,
Ritor1
parents:
diff changeset
102 EVENT_OnLongTimer = 0x26,
Ritor1
parents:
diff changeset
103 EVENT_SetNPCTopic = 0x27,
Ritor1
parents:
diff changeset
104 EVENT_MoveNPC = 0x28,
Ritor1
parents:
diff changeset
105 EVENT_GiveItem = 0x29,
Ritor1
parents:
diff changeset
106 EVENT_ChangeEvent = 0x2A,
Ritor1
parents:
diff changeset
107 EVENT_CheckSkill = 0x2B,
423
88c30918eef7 NPC_EventProcessor
Gloval
parents: 336
diff changeset
108 EVENT_OnCanShowDialogItemCmp = 44,
88c30918eef7 NPC_EventProcessor
Gloval
parents: 336
diff changeset
109 EVENT_EndCanShowDialogItem = 45,
88c30918eef7 NPC_EventProcessor
Gloval
parents: 336
diff changeset
110 EVENT_SetCanShowDialogItem = 46,
0
Ritor1
parents:
diff changeset
111 EVENT_SetNPCGroupNews = 0x2F,
Ritor1
parents:
diff changeset
112 EVENT_SetActorGroup = 0x30,
Ritor1
parents:
diff changeset
113 EVENT_NPCSetItem = 0x31,
Ritor1
parents:
diff changeset
114 EVENT_SetNPCGreeting = 0x32,
Ritor1
parents:
diff changeset
115 EVENT_IsActorAlive = 0x33,
423
88c30918eef7 NPC_EventProcessor
Gloval
parents: 336
diff changeset
116 EVENT_IsActorAssasinated =52,
0
Ritor1
parents:
diff changeset
117 EVENT_OnMapLeave = 0x35,
Ritor1
parents:
diff changeset
118 EVENT_ChangeGroup = 0x36,
Ritor1
parents:
diff changeset
119 EVENT_ChangeGroupAlly = 0x37,
Ritor1
parents:
diff changeset
120 EVENT_CheckSeason = 0x38,
Ritor1
parents:
diff changeset
121 EVENT_ToggleActorGroupFlag = 0x39,
Ritor1
parents:
diff changeset
122 EVENT_ToggleChestFlag = 0x3A,
Ritor1
parents:
diff changeset
123 EVENT_CharacterAnimation = 0x3B,
Ritor1
parents:
diff changeset
124 EVENT_SetActorItem = 0x3C,
Ritor1
parents:
diff changeset
125 EVENT_OnDateTimer = 0x3D,
Ritor1
parents:
diff changeset
126 EVENT_EnableDateTimer = 0x3E,
Ritor1
parents:
diff changeset
127 EVENT_StopAnimation = 0x3F,
Ritor1
parents:
diff changeset
128 EVENT_CheckItemsCount = 0x40,
Ritor1
parents:
diff changeset
129 EVENT_RemoveItems = 0x41,
Ritor1
parents:
diff changeset
130 EVENT_SpecialJump = 0x42,
Ritor1
parents:
diff changeset
131 EVENT_IsTotalBountyHuntingAwardInRange = 0x43,
Ritor1
parents:
diff changeset
132 EVENT_IsNPCInParty = 0x44,
Ritor1
parents:
diff changeset
133 };
Ritor1
parents:
diff changeset
134
Ritor1
parents:
diff changeset
135 /* 311 */
Ritor1
parents:
diff changeset
136 enum VariableType
Ritor1
parents:
diff changeset
137 {
Ritor1
parents:
diff changeset
138 VAR_Sex = 0x1,
Ritor1
parents:
diff changeset
139 VAR_Class = 0x2,
Ritor1
parents:
diff changeset
140 VAR_CurrentHP = 0x3,
Ritor1
parents:
diff changeset
141 VAR_MaxHP = 0x4,
Ritor1
parents:
diff changeset
142 VAR_CurrentSP = 0x5,
Ritor1
parents:
diff changeset
143 VAR_MaxSP = 0x6,
Ritor1
parents:
diff changeset
144 VAR_ActualAC = 0x7,
Ritor1
parents:
diff changeset
145 VAR_ACModifier = 0x8,
Ritor1
parents:
diff changeset
146 VAR_BaseLevel = 0x9,
Ritor1
parents:
diff changeset
147 VAR_LevelModifier = 0xA,
Ritor1
parents:
diff changeset
148 VAR_Age = 0xB,
Ritor1
parents:
diff changeset
149 VAR_Award = 0xC,
Ritor1
parents:
diff changeset
150 VAR_Experience = 0xD,
Ritor1
parents:
diff changeset
151 VAR_Race = 0xE,
Ritor1
parents:
diff changeset
152 VAR_QBits_QuestsDone = 0x10,
Ritor1
parents:
diff changeset
153 VAR_PlayerItemInHands = 0x11,
Ritor1
parents:
diff changeset
154 VAR_Hour = 0x12,
Ritor1
parents:
diff changeset
155 VAR_DayOfYear = 0x13,
Ritor1
parents:
diff changeset
156 VAR_DayOfWeek = 0x14,
Ritor1
parents:
diff changeset
157 VAR_FixedGold = 0x15,
Ritor1
parents:
diff changeset
158 VAR_RandomGold = 0x16,
Ritor1
parents:
diff changeset
159 VAR_FixedFood = 0x17,
Ritor1
parents:
diff changeset
160 VAR_RandomFood = 0x18,
Ritor1
parents:
diff changeset
161 VAR_MightBonus = 0x19,
Ritor1
parents:
diff changeset
162 VAR_IntellectBonus = 0x1A,
Ritor1
parents:
diff changeset
163 VAR_PersonalityBonus = 0x1B,
Ritor1
parents:
diff changeset
164 VAR_EnduranceBonus = 0x1C,
Ritor1
parents:
diff changeset
165 VAR_SpeedBonus = 0x1D,
Ritor1
parents:
diff changeset
166 VAR_AccuracyBonus = 0x1E,
Ritor1
parents:
diff changeset
167 VAR_LuckBonus = 0x1F,
Ritor1
parents:
diff changeset
168 VAR_BaseMight = 0x20,
Ritor1
parents:
diff changeset
169 VAR_BaseIntellect = 0x21,
Ritor1
parents:
diff changeset
170 VAR_BasePersonality = 0x22,
Ritor1
parents:
diff changeset
171 VAR_BaseEndurance = 0x23,
Ritor1
parents:
diff changeset
172 VAR_BaseSpeed = 0x24,
Ritor1
parents:
diff changeset
173 VAR_BaseAccuracy = 0x25,
Ritor1
parents:
diff changeset
174 VAR_BaseLuck = 0x26,
Ritor1
parents:
diff changeset
175 VAR_ActualMight = 0x27,
Ritor1
parents:
diff changeset
176 VAR_ActualIntellect = 0x28,
Ritor1
parents:
diff changeset
177 VAR_ActualPersonality = 0x29,
Ritor1
parents:
diff changeset
178 VAR_ActualEndurance = 0x2A,
Ritor1
parents:
diff changeset
179 VAR_ActualSpeed = 0x2B,
Ritor1
parents:
diff changeset
180 VAR_ActualAccuracy = 0x2C,
Ritor1
parents:
diff changeset
181 VAR_ActualLuck = 0x2D,
Ritor1
parents:
diff changeset
182 VAR_FireResistance = 0x2E,
Ritor1
parents:
diff changeset
183 VAR_AirResistance = 0x2F,
Ritor1
parents:
diff changeset
184 VAR_WaterResistance = 0x30,
Ritor1
parents:
diff changeset
185 VAR_EarthResistance = 0x31,
Ritor1
parents:
diff changeset
186 VAR_SpiritResistance = 0x32,
Ritor1
parents:
diff changeset
187 VAR_MindResistance = 0x33,
Ritor1
parents:
diff changeset
188 VAR_BodyResistance = 0x34,
Ritor1
parents:
diff changeset
189 VAR_LightResistance = 0x35,
Ritor1
parents:
diff changeset
190 VAR_DarkResistance = 0x36,
Ritor1
parents:
diff changeset
191 VAR_PhysicalResistance = 0x37,
Ritor1
parents:
diff changeset
192 VAR_MagicResistance = 0x38,
Ritor1
parents:
diff changeset
193 VAR_FireResistanceBonus = 0x39,
Ritor1
parents:
diff changeset
194 VAR_AirResistanceBonus = 0x3A,
Ritor1
parents:
diff changeset
195 VAR_WaterResistanceBonus = 0x3B,
Ritor1
parents:
diff changeset
196 VAR_EarthResistanceBonus = 0x3C,
Ritor1
parents:
diff changeset
197 VAR_SpiritResistanceBonus = 0x3D,
Ritor1
parents:
diff changeset
198 VAR_MindResistanceBonus = 0x3E,
Ritor1
parents:
diff changeset
199 VAR_BodyResistanceBonus = 0x3F,
Ritor1
parents:
diff changeset
200 VAR_LightResistanceBonus = 0x40,
Ritor1
parents:
diff changeset
201 VAR_DarkResistanceBonus = 0x41,
Ritor1
parents:
diff changeset
202 VAR_PhysicalResistanceBonus = 0x42,
Ritor1
parents:
diff changeset
203 VAR_MagicResistanceBonus = 0x43,
Ritor1
parents:
diff changeset
204 VAR_StaffSkill = 0x44,
Ritor1
parents:
diff changeset
205 VAR_SwordSkill = 0x45,
Ritor1
parents:
diff changeset
206 VAR_DaggerSkill = 0x46,
Ritor1
parents:
diff changeset
207 VAR_AxeSkill = 0x47,
Ritor1
parents:
diff changeset
208 VAR_SpearSkill = 0x48,
Ritor1
parents:
diff changeset
209 VAR_BowSkill = 0x49,
Ritor1
parents:
diff changeset
210 VAR_MaceSkill = 0x4A,
Ritor1
parents:
diff changeset
211 VAR_BlasterSkill = 0x4B,
Ritor1
parents:
diff changeset
212 VAR_ShieldSkill = 0x4C,
Ritor1
parents:
diff changeset
213 VAR_LeatherSkill = 0x4D,
Ritor1
parents:
diff changeset
214 VAR_SkillChain = 0x4E,
Ritor1
parents:
diff changeset
215 VAR_PlateSkill = 0x4F,
Ritor1
parents:
diff changeset
216 VAR_FireSkill = 0x50,
Ritor1
parents:
diff changeset
217 VAR_AirSkill = 0x51,
Ritor1
parents:
diff changeset
218 VAR_WaterSkill = 0x52,
Ritor1
parents:
diff changeset
219 VAR_EarthSkill = 0x53,
Ritor1
parents:
diff changeset
220 VAR_SpiritSkill = 0x54,
Ritor1
parents:
diff changeset
221 VAR_MindSkill = 0x55,
Ritor1
parents:
diff changeset
222 VAR_BodySkill = 0x56,
Ritor1
parents:
diff changeset
223 VAR_LightSkill = 0x57,
Ritor1
parents:
diff changeset
224 VAR_DarkSkill = 0x58,
Ritor1
parents:
diff changeset
225 VAR_IdentifyItemSkill = 0x59,
Ritor1
parents:
diff changeset
226 VAR_MerchantSkill = 0x5A,
Ritor1
parents:
diff changeset
227 VAR_RepairSkill = 0x5B,
Ritor1
parents:
diff changeset
228 VAR_BodybuildingSkill = 0x5C,
Ritor1
parents:
diff changeset
229 VAR_MeditationSkill = 0x5D,
Ritor1
parents:
diff changeset
230 VAR_PerceptionSkill = 0x5E,
Ritor1
parents:
diff changeset
231 VAR_DiplomacySkill = 0x5F,
Ritor1
parents:
diff changeset
232 VAR_ThieverySkill = 0x60,
Ritor1
parents:
diff changeset
233 VAR_DisarmTrapSkill = 0x61,
Ritor1
parents:
diff changeset
234 VAR_DodgeSkill = 0x62,
Ritor1
parents:
diff changeset
235 VAR_UnarmedSkill = 0x63,
Ritor1
parents:
diff changeset
236 VAR_IdentifyMonsterSkill = 0x64,
Ritor1
parents:
diff changeset
237 VAR_ArmsmasterSkill = 0x65,
Ritor1
parents:
diff changeset
238 VAR_StealingSkill = 0x66,
Ritor1
parents:
diff changeset
239 VAR_AlchemySkill = 0x67,
Ritor1
parents:
diff changeset
240 VAR_LearningSkill = 0x68,
Ritor1
parents:
diff changeset
241 VAR_Cursed = 0x69,
Ritor1
parents:
diff changeset
242 VAR_Weak = 0x6A,
Ritor1
parents:
diff changeset
243 VAR_Asleep = 0x6B,
Ritor1
parents:
diff changeset
244 VAR_Afraid = 0x6C,
Ritor1
parents:
diff changeset
245 VAR_Drunk = 0x6D,
Ritor1
parents:
diff changeset
246 VAR_Insane = 0x6E,
Ritor1
parents:
diff changeset
247 VAR_PoisonedGreen = 0x6F,
Ritor1
parents:
diff changeset
248 VAR_DiseasedGreen = 0x70,
Ritor1
parents:
diff changeset
249 VAR_PoisonedYellow = 0x71,
Ritor1
parents:
diff changeset
250 VAR_DiseasedYellow = 0x72,
Ritor1
parents:
diff changeset
251 VAR_PoisonedRed = 0x73,
Ritor1
parents:
diff changeset
252 VAR_DiseasedRed = 0x74,
Ritor1
parents:
diff changeset
253 VAR_Paralyzed = 0x75,
Ritor1
parents:
diff changeset
254 VAR_Unconsious = 0x76,
Ritor1
parents:
diff changeset
255 VAR_Dead = 0x77,
Ritor1
parents:
diff changeset
256 VAR_Stoned = 0x78,
Ritor1
parents:
diff changeset
257 VAR_Eradicated = 0x79,
Ritor1
parents:
diff changeset
258 VAR_MajorCondition = 0x7A,
Ritor1
parents:
diff changeset
259 VAR_MapPersistentVariable_0 = 0x7B,
Ritor1
parents:
diff changeset
260 VAR_NPCs = 0xD6,
Ritor1
parents:
diff changeset
261 VAR_Reputation = 0xD7,
Ritor1
parents:
diff changeset
262 VAR_ActiveSpells = 0xDE,
Ritor1
parents:
diff changeset
263 VAR_AutoNotes = 0xDF,
Ritor1
parents:
diff changeset
264 VAR_MonthEquals = 0xE2,
Ritor1
parents:
diff changeset
265 VAR_NPCs2 = 0xE8,
Ritor1
parents:
diff changeset
266 VAR_IsFlying = 0xF0,
Ritor1
parents:
diff changeset
267 VAR_HiredNPCHasSpeciality = 0xF1,
Ritor1
parents:
diff changeset
268 VAR_CircusPrises = 0xF2,
Ritor1
parents:
diff changeset
269 VAR_NumSkillPoints = 0xF3,
Ritor1
parents:
diff changeset
270 VAR_MonthEquals2 = 0xF4,
Ritor1
parents:
diff changeset
271 VAR_Counter1 = 0xF7,
Ritor1
parents:
diff changeset
272 VAR_Counter2 = 0xF8,
Ritor1
parents:
diff changeset
273 VAR_Counter3 = 0xF9,
Ritor1
parents:
diff changeset
274 VAR_Counter4 = 0xFA,
Ritor1
parents:
diff changeset
275 VAR_Counter5 = 0xFB,
Ritor1
parents:
diff changeset
276 VAR_Counter6 = 0xFC,
Ritor1
parents:
diff changeset
277 VAR_Counter7 = 0xFD,
Ritor1
parents:
diff changeset
278 VAR_Counter8 = 0xFE,
Ritor1
parents:
diff changeset
279 VAR_Counter9 = 0xFF,
Ritor1
parents:
diff changeset
280 VAR_CounterA = 0x100,
Ritor1
parents:
diff changeset
281 VAR_ReputationInCurrentLocation = 0x113,
Ritor1
parents:
diff changeset
282 VAR_History_0 = 0x114,
Ritor1
parents:
diff changeset
283 VAR_History_28 = 0x130,
Ritor1
parents:
diff changeset
284 VAR_GoldInBank = 0x132,
Ritor1
parents:
diff changeset
285 VAR_NumDeaths = 0x133,
Ritor1
parents:
diff changeset
286 VAR_NumBounties = 0x134,
Ritor1
parents:
diff changeset
287 VAR_PrisonTerms = 0x135,
Ritor1
parents:
diff changeset
288 VAR_ArenaWinsPage = 0x136,
Ritor1
parents:
diff changeset
289 VAR_ArenaWinsSquire = 0x137,
Ritor1
parents:
diff changeset
290 VAR_ArenaWinsKnight = 0x138,
Ritor1
parents:
diff changeset
291 VAR_ArenaWinsLord = 0x139,
Ritor1
parents:
diff changeset
292 VAR_Invisible = 0x13A,
Ritor1
parents:
diff changeset
293 VAR_ItemEquipped = 0x13B,
Ritor1
parents:
diff changeset
294 };
Ritor1
parents:
diff changeset
295
336
ea55d6414029 Event_proceccor preliminary
Gloval
parents: 310
diff changeset
296 #define EVT_WORD(x) *(unsigned __int16*)&x
ea55d6414029 Event_proceccor preliminary
Gloval
parents: 310
diff changeset
297 #define EVT_DWORD(x) *(unsigned int*)&x
ea55d6414029 Event_proceccor preliminary
Gloval
parents: 310
diff changeset
298 #define EVT_STRING(x) (unsigned char*)&x
ea55d6414029 Event_proceccor preliminary
Gloval
parents: 310
diff changeset
299 #define EVT_BYTE(x) (unsigned char)x
0
Ritor1
parents:
diff changeset
300
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
301 extern EventIndex pSomeOtherEVT_Events[4400];
423
88c30918eef7 NPC_EventProcessor
Gloval
parents: 336
diff changeset
302 extern signed int uSomeOtherEVT_NumEvents;
0
Ritor1
parents:
diff changeset
303 extern char *pSomeOtherEVT;
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
304 extern EventIndex pSomeEVT_Events[4400];
428
24936a5ff8ca level hints
Gloval
parents: 423
diff changeset
305 extern signed int uSomeEVT_NumEvents;
0
Ritor1
parents:
diff changeset
306 extern char *pSomeEVT;
Ritor1
parents:
diff changeset
307
Ritor1
parents:
diff changeset
308 extern unsigned int uGlobalEVT_NumEvents;
Ritor1
parents:
diff changeset
309 extern unsigned int uGlobalEVT_Size;
Ritor1
parents:
diff changeset
310 extern char pGlobalEVT[46080];
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
311 extern EventIndex pGlobalEVT_Index[4400];
0
Ritor1
parents:
diff changeset
312
Ritor1
parents:
diff changeset
313 extern unsigned int pLevelStrOffsets[500];
Ritor1
parents:
diff changeset
314 extern unsigned int uLevelStrNumStrings;
Ritor1
parents:
diff changeset
315 extern unsigned int uLevelStrFileSize;
428
24936a5ff8ca level hints
Gloval
parents: 423
diff changeset
316 extern signed int uLevelEVT_NumEvents;
0
Ritor1
parents:
diff changeset
317 extern unsigned int uLevelEVT_Size;
Ritor1
parents:
diff changeset
318 extern char pLevelStr[9216];
Ritor1
parents:
diff changeset
319 extern char pLevelEVT[9216];
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
320 extern EventIndex pLevelEVT_Index[4400];
0
Ritor1
parents:
diff changeset
321
Ritor1
parents:
diff changeset
322
307
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
323 unsigned int LoadEventsToBuffer(const char *pContainerName, char *pBuffer, unsigned int uBufferSize);
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
324 void Initialize_GlobalEVT();
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
325 void LoadLevel_InitializeLevelEvt();
72faa54ff319 Events stuff moved to its file
Gloval
parents: 0
diff changeset
326 void EventProcessor(int uEventID, int a2, int a3);
0
Ritor1
parents:
diff changeset
327
Ritor1
parents:
diff changeset
328
Ritor1
parents:
diff changeset
329
Ritor1
parents:
diff changeset
330 /* 312 */
Ritor1
parents:
diff changeset
331 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
332 struct ByteArray
Ritor1
parents:
diff changeset
333 {
Ritor1
parents:
diff changeset
334 char f[65535];
Ritor1
parents:
diff changeset
335 };
Ritor1
parents:
diff changeset
336 #pragma pack(pop)