World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
15 size_t num_mm6_decs = data_mm6 ? *(
uint32_t*)data_mm6 : 0;
16 size_t num_mm7_decs = data_mm7 ? *(
uint32_t*)data_mm7 : 0;
17 size_t num_mm8_decs = data_mm8 ? *(
uint32_t*)data_mm8 : 0;
19 size_t uNumDecorations = num_mm6_decs + num_mm7_decs + num_mm8_decs;
20 Assert(uNumDecorations);
21 Assert(!num_mm8_decs);
24 for (
size_t i = 0; i < num_mm7_decs; i++) {
29 for (
size_t i = 0; i < num_mm6_decs; ++i) {
40 for (
size_t i = 0; i < num_mm8_decs; i++) {
50 FILE *file = fopen(
"data\\ddeclist.bin",
"wb");
51 if (file ==
nullptr) {
52 Error(
"Unable to save ddeclist.bin!", 0);
55 fwrite(
this, 4, 1, file);
63 if (!_stricmp(pName,
pDecorations[uID].pName))
return uID;
73 uint decorEventIdx = 0;
79 if (decorEventIdx < 124) {
unsigned __int16 uint16_t
std::array< LevelDecoration, 3000 > pLevelDecorations
struct SpriteFrameTable * pSpriteFrameTable
void FromFile(void *data_mm6, void *data_mm7, void *data_mm8)
std::vector< DecorationDesc > pDecorations
uint16_t GetDecorIdByName(const char *pName)
std::array< unsigned char, 125 > _decor_events
size_t uNumLevelDecorations
void InitializeSprite(signed int uSpriteID)
void InitializeDecorationSprite(unsigned int uDecID)
stru123 stru_5E4C90_MapPersistVars
void RespawnGlobalDecorations()
uint8_t uColoredLightBlue
unsigned __int32 uint32_t
uint8_t uColoredLightGreen
struct DecorationList * pDecorationList