Mercurial > mm7
view MM7.h @ 766:a464d28566a6
days_played_without_rest
author | Nomad |
---|---|
date | Sat, 23 Mar 2013 20:22:51 +0200 |
parents | da130dd3092a |
children | 7994986603d5 a821bbace194 |
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, }; /* 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]; #pragma pack(push, 1) struct stru365_travel_info { unsigned char uMapInfoID; unsigned char pSchedule[7]; unsigned char uTravelTime; unsigned char field_9[3]; int field_C; int field_10; int field_14; int field_18; unsigned int uQuestBit; // quest bit required to set for this travel option to be enabled; otherwise 0 }; #pragma pack(pop) extern stru365_travel_info array_4F09B0[];