Mercurial > mm7
comparison Events.h @ 307:72faa54ff319
Events stuff moved to its file
author | Gloval |
---|---|
date | Wed, 20 Feb 2013 00:26:17 +0400 |
parents | 9c0607679772 |
children | 4c2cdda88562 |
comparison
equal
deleted
inserted
replaced
304:f16ac5e65438 | 307:72faa54ff319 |
---|---|
3 | 3 |
4 | 4 |
5 | 5 |
6 /* 167 */ | 6 /* 167 */ |
7 #pragma pack(push, 1) | 7 #pragma pack(push, 1) |
8 struct Event | 8 struct EventIndex |
9 { | 9 { |
10 int uEventID; | 10 int uEventID; |
11 int field_4; | 11 int event_sequence_num; |
12 unsigned int uEventOffsetInEVT; | 12 unsigned int uEventOffsetInEVT; |
13 }; | 13 }; |
14 #pragma pack(pop) | 14 #pragma pack(pop) |
15 | 15 |
16 | 16 // raw event struct |
17 // header | |
18 // size_event 1 header+data | |
19 // event id 2 3 | |
20 // event_sequence_num | |
21 // event data | |
17 #pragma pack(push, 1) | 22 #pragma pack(push, 1) |
18 struct _evt_raw | 23 struct _evt_raw |
19 { | 24 { |
20 unsigned char v0; | 25 unsigned char v0; |
21 unsigned char v1; | 26 unsigned char v1; |
22 unsigned char v2; | 27 unsigned char v2; |
23 unsigned char v3; | 28 unsigned char v3; |
29 | |
24 unsigned char v4; | 30 unsigned char v4; |
25 unsigned char v5; | 31 unsigned char v5; |
26 unsigned char v6; | 32 unsigned char v6; |
27 unsigned char v7; | 33 unsigned char v7; |
28 unsigned char v8; | 34 unsigned char v8; |
287 }; | 293 }; |
288 | 294 |
289 | 295 |
290 | 296 |
291 | 297 |
292 extern Event pSomeOtherEVT_Events[4400]; | 298 extern EventIndex pSomeOtherEVT_Events[4400]; |
293 extern unsigned int uSomeOtherEVT_NumEvents; | 299 extern unsigned int uSomeOtherEVT_NumEvents; |
294 extern char *pSomeOtherEVT; | 300 extern char *pSomeOtherEVT; |
295 extern Event pSomeEVT_Events[4400]; | 301 extern EventIndex pSomeEVT_Events[4400]; |
296 extern unsigned int uSomeEVT_NumEvents; | 302 extern unsigned int uSomeEVT_NumEvents; |
297 extern char *pSomeEVT; | 303 extern char *pSomeEVT; |
298 | 304 |
299 extern unsigned int uGlobalEVT_NumEvents; | 305 extern unsigned int uGlobalEVT_NumEvents; |
300 extern unsigned int uGlobalEVT_Size; | 306 extern unsigned int uGlobalEVT_Size; |
301 extern char pGlobalEVT[46080]; | 307 extern char pGlobalEVT[46080]; |
302 extern Event pGlobalEVT_Events[4400]; | 308 extern EventIndex pGlobalEVT_Index[4400]; |
303 | 309 |
304 extern unsigned int pLevelStrOffsets[500]; | 310 extern unsigned int pLevelStrOffsets[500]; |
305 extern unsigned int uLevelStrNumStrings; | 311 extern unsigned int uLevelStrNumStrings; |
306 extern unsigned int uLevelStrFileSize; | 312 extern unsigned int uLevelStrFileSize; |
307 extern unsigned int uLevelEVT_NumEvents; | 313 extern unsigned int uLevelEVT_NumEvents; |
308 extern unsigned int uLevelEVT_Size; | 314 extern unsigned int uLevelEVT_Size; |
309 extern char pLevelStr[9216]; | 315 extern char pLevelStr[9216]; |
310 extern char pLevelEVT[9216]; | 316 extern char pLevelEVT[9216]; |
311 extern Event pLevelEVT_Events[4400]; | 317 extern EventIndex pLevelEVT_Index[4400]; |
312 | 318 |
313 | 319 |
314 | 320 unsigned int LoadEventsToBuffer(const char *pContainerName, char *pBuffer, unsigned int uBufferSize); |
315 | 321 void Initialize_GlobalEVT(); |
322 void LoadLevel_InitializeLevelEvt(); | |
323 void EventProcessor(int uEventID, int a2, int a3); | |
316 | 324 |
317 | 325 |
318 | 326 |
319 /* 312 */ | 327 /* 312 */ |
320 #pragma pack(push, 1) | 328 #pragma pack(push, 1) |