Mercurial > mm7
view MM7.h @ 556:797e1ec9fb83
Save fix
author | zipi |
---|---|
date | Mon, 04 Mar 2013 20:05:05 +0000 |
parents | 3ee1e351e710 |
children | 59713bb36033 |
line wrap: on
line source
#pragma once #include "OSAPI.h" #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)) typedef unsigned __int16 _WORD; typedef unsigned __int64 _QWORD; #include "VectorTypes.h" #include "IndoorCameraD3D.h" /*#include "LOD.h" #include "Texture.h" #include "Mouse.h" #include "Overlays.h" #include "Game.h" #include "Items.h" #include "Actor.h" #include "Arcomage.h" #include "Render.h" #include "Time.h" #include "GUIWindow.h" #include "GUIButton.h" #include "GUIProgressBar.h" #include "GUIFont.h" #include "NPC.h" #include "PaletteManager.h" #include "Party.h" #include "AudioPlayer.h" #include "VideoPlayer.h" #include "Chest.h" #include "Allocator.h" #include "IndoorCamera.h" #include "Party.h" #include "Outdoor.h" #include "mm7_data.h" */ /* 154 */ #pragma pack(push, 1) struct stru161 { Vec3_int_ pos; __int16 rot_y; __int16 rot_x; unsigned __int16 uMapInfoID; __int16 field_12; }; #pragma pack(pop) extern stru161 stru_4ECBB8[6]; // weak /* 285 */ #pragma pack(push, 1) struct stru289 { //----- (0046263C) -------------------------------------------------------- inline stru289() { this->field_64 = 2; this->field_74 = 0; this->field_70 = 0; this->field_6C = 0; this->field_68 = 0; } char field_0[100]; int field_64; int field_68; int field_6C; int field_70; int field_74; }; #pragma pack(pop) extern stru289 stru_6BE158; /* 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, }; /* 349 */ enum HOUSE_ID { HOUSE_SMITH_EMERALD_ISLE = 1, HOUSE_BODY_GUILD_NOVICE_EMERALD_ISLE = 163, HOUSE_BODY_GUILD_ERATHIA = 165, HOUSE_DARK_GUILD_PIT = 170, HOUSE_LORD_AND_JUDGE = 186, HOUSE_JAIL = 187, HOUSE_600 = 600,//??? HOUSE_601 = 601//??? }; /* 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) /* 369 */ #pragma pack(push, 1) #pragma pack(pop) extern int paperdoll_Weapon[4][16][2]; /* 371 */ // stru331 - deleted /* 372 */ #pragma pack(push, 1) struct stru332 { unsigned int texids[11]; int texid1; int texid2; int texid3; int texid4; int texid5; }; #pragma pack(pop) extern stru332 stru_511698[]; /* 373 */ #pragma pack(push, 1) struct stru333 { unsigned int texids[5]; int texid1; int texid2; }; #pragma pack(pop) extern stru333 stru_511718[]; /* 374 */ #pragma pack(push, 1) struct stru334 { __int16 field_0; __int16 field_2; __int16 field_4; __int16 field_6; }; #pragma pack(pop) extern stru334 array_4E2940[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) /* 388 */ #pragma pack(push, 1) struct stru348 { __int16 field_0; __int16 field_2; __int16 field_4; __int16 field_6; __int16 field_8; __int16 field_A; __int16 field_C; __int16 field_E; __int16 field_10; __int16 field_12; int field_14; }; #pragma pack(pop) extern stru348 stru_4E1890[13];