Mercurial > mm7
view MM7.h @ 1026:6afa77761a00
Слияние
author | Ritor1 |
---|---|
date | Tue, 21 May 2013 12:43:08 +0600 |
parents | c45d51b3f4f4 |
children | ad89d1905b48 |
line wrap: on
line source
#pragma once #include <math.h> #include <stdio.h> #include <stdarg.h> #include <string> typedef unsigned int uint; #define LOWORD(a) (*((unsigned short *)&a)) #define HIWORD(a) (*((unsigned short *)&a + 1)) #define SHIWORD(a) (*((short *)&a + 1)) #define LODWORD(a) (*((unsigned int *)&a)) #define HIDWORD(a) (*((unsigned int *)&a + 1)) #define SLODWORD(a) (*((int *)&a)) #define SHIDWORD(a) (*((int *)&a + 1)) #define LOBYTE(a) (*((unsigned char *)&a)) #define HIBYTE(a) (*((unsigned char *)&a + sizeof(a) - 1)) #define BYTE1(a) (*((unsigned char *)&a + 1)) #define BYTE2(a) (*((unsigned char *)&a + 2)) #define BYTE3(a) (*((unsigned char *)&a + 3)) #define PID(type, id) (unsigned int)((((8 * (id))) | (type)) & 0xFFFF) // packed id #define PID_TYPE(pid) (unsigned int)((pid) & 7) // extract type #define PID_ID(pid) (unsigned int)(((pid) & 0xFFFF) >> 3) // extract value typedef unsigned __int16 _WORD; typedef unsigned __int64 _QWORD; #include "VectorTypes.h" #include "IndoorCameraD3D.h" /* 288 */ /*#pragma pack(push, 1) struct CheckHRESULT_stru0 { void CheckHRESULT(HRESULT a2, const char *Str, int a4, unsigned int uType); void *_466D09_xcpt_string(std::string a2, const char *Str, int a4); void ShowMessageBox(std::string *a0, std::string lpCaption, UINT uType, std::string lpText, int line); char ddraw_error(HRESULT hr, char *Str, size_t a3); char dinput_error(int a1, const char *Str, int a3); void (__thiscall ***vdestructor_ptr)(CheckHRESULT_stru0 *, bool); }; #pragma pack(pop)*/ /* 297 */ enum SoundType { SOUND_EndTurnBasedMode = 0xCE, SOUND_StartTurnBasedMode = 0xCF, SOUND_FlipOnExit = 0x4E21, }; /* 362 */ #pragma pack(push, 1) struct TravelInfo { char uMapID; char pSchedule[7]; char uDaysCount; char field_9[3]; int x; int y; int z; int direction; int field_1C; }; #pragma pack(pop) /* 374 */ #pragma pack(push, 1) struct stat_coord { __int16 x; __int16 y; __int16 width; __int16 height; }; #pragma pack(pop) extern stat_coord stat_string_coord[26]; /* 376 */ #pragma pack(push, 1) struct stru336 { int field_0; int field_4; int field_8; int field_C; int field_10; int field_14; __int16 field_18[480]; __int16 field_3D8[480]; }; #pragma pack(pop)