World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
11 if (uItemID ==
pObjects[i].uObjectID) {
57 static_assert(
sizeof(
ObjectDesc) == 56,
"Wrong type size");
59 unsigned int num_mm6_objs = data_mm6 ? *(
uint32_t*)data_mm6 : 0;
60 unsigned int num_mm7_objs = data_mm7 ? *(
uint32_t*)data_mm7 : 0;
61 unsigned int num_mm8_objs = data_mm8 ? *(
uint32_t*)data_mm8 : 0;
63 uNumObjects = num_mm6_objs + num_mm7_objs + num_mm8_objs;
65 assert(num_mm8_objs == 0);
69 for (
unsigned int i = 0; i < num_mm6_objs; ++i) {
72 memcpy(
dst->field_0,
src->field_0,
sizeof(
dst->field_0));
73 dst->uObjectID =
src->uObjectID;
74 dst->uRadius =
src->uRadius;
75 dst->uHeight =
src->uHeight;
77 dst->uSpriteID =
src->uSpriteID;
78 dst->uLifetime =
src->uLifetime;
79 dst->uParticleTrailColor =
src->uParticleTrailColor;
81 dst->uParticleTrailColorR =
src->uParticleTrailColorR;
82 dst->uParticleTrailColorG =
src->uParticleTrailColorG;
83 dst->uParticleTrailColorB =
src->uParticleTrailColorB;
84 dst->field_35_clr =
src->field_35_clr;
85 dst->field_36_clr = 0;
86 dst->field_37_clr = 0;
unsigned __int16 uint16_t
struct SpriteFrameTable * pSpriteFrameTable
unsigned int ObjectIDByItemID(unsigned int uItemID)
char uParticleTrailColorB
char uParticleTrailColorR
uint32_t uParticleTrailColor
uint16_t uParticleTrailColor
void InitializeSprite(signed int uSpriteID)
uint8_t uParticleTrailColorB
uint8_t uParticleTrailColorG
struct ObjectDesc * pObjects
uint8_t uParticleTrailColorR
unsigned __int32 uint32_t
char uParticleTrailColorG
struct ObjectList * pObjectList
void FromFile(void *data_mm6, void *data_mm7, void *data_mm8)