World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
37 for (
uint i = 0; i < 50; ++i) {
88 render->DrawTextureAlphaNew(394 / 640.0
f, 288 / 480.0
f,
110 v2 = fopen(
"data\\doverlay.bin",
"wb");
112 if (!
v2) Error(
"Unable to save doverlay.bin!");
113 fwrite(
this, 4, 1,
v2);
120 uint num_mm6_overlays = data_mm6 ? *(
int *)data_mm6 : 0,
121 num_mm7_overlays = data_mm7 ? *(
int *)data_mm7 : 0,
122 num_mm8_overlays = data_mm8 ? *(
int *)data_mm8 : 0;
124 uNumOverlays = num_mm6_overlays + num_mm7_overlays + num_mm8_overlays;
126 Assert(!num_mm8_overlays);
131 memcpy(
pOverlays + num_mm7_overlays, (
char *)data_mm6 + 4,
133 memcpy(
pOverlays + num_mm6_overlays + num_mm7_overlays,
134 (
char *)data_mm8 + 4, num_mm8_overlays *
sizeof(
OverlayDesc));
155 v4 = fopen(Args,
"r");
157 if (!v4) Error(
"ObjectDescriptionList::load - Unable to open file: %s.");
161 if (fgets(&Buf, 490, v4)) {
163 *strchr(&Buf, 10) = 0;
166 }
while (fgets(&Buf, 490, File));
174 Error(
"OverlayDescriptionList::load - Out of Memory!");
178 this->uNumOverlays =
v3;
180 for (i = fgets(&Buf, 490, File); i; i = fgets(&Buf, 490, File)) {
181 *strchr(&Buf, 10) = 0;
const char * pProperties[30]
std::array< unsigned int, 5 > pIconIDs_Turn
unsigned int uTimeElapsed
struct SpriteFrameTable * pSpriteFrameTable
int _4418B6(int uOverlayID, int16_t a3, int a4, int a5, int16_t a6)
uint16_t uSpriteFramesetID
struct IconFrameTable * pIconsFrameTable
int _4418B1(int a2, int a3, int a4, int a5)
int16_t sprite_frame_time
unsigned int uIconID_TurnStop
enum CURRENT_SCREEN current_screen_type
int dword_50C998_turnbased_icon_1A
struct stru262_TurnBased * pTurnEngine
OtherOverlay pOverlays[50]
unsigned int uIconID_TurnStart
bool FromFileTxt(const char *Args)
void DrawTurnBasedIcon(int a2)
SpriteFrame * pSpriteSFrames
void InitializeSprite(signed int uSpriteID)
FrameTableTxtLine * txt_file_frametable_parser(const char *str_to_parse, FrameTableTxtLine *tokens_table)
unsigned int uIconID_TurnHour
Icon * GetFrame(unsigned int uIconID, unsigned int frame_time)
int FastFindSprite(const char *pSpriteName)
struct OtherOverlayList * pOtherOverlayList
GLfloat GLfloat GLfloat v2
GLfloat GLfloat GLfloat GLfloat v3
struct OverlayList * pOverlayList
unsigned int uNumOverlays
struct OverlayDesc * pOverlays
void FromFile(void *data_mm6, void *data_mm7, void *data_mm8)
std::shared_ptr< IRender > render