Engravings are 0x28 bytes long.

develop
Petr Mrázek 2011-04-03 02:00:56 +02:00
parent 4cfc12b52b
commit e18ade4ea6
2 changed files with 4 additions and 1 deletions

@ -38,6 +38,9 @@ namespace DFHack
uint32_t type; // possibly an enum, decides what vectors to use for imagery
// 20
uint32_t subtype_idx; // index in a vector kind of deal related to previous value
// 24
uint32_t unknown1;
// 28 = length
};
/**
* structure for holding a DF engraving

@ -51,7 +51,7 @@ int main (int numargs, const char ** args)
printf("Engraving %d/%d/%d @ 0x%x\n", data.x, data.y, data.z, engraved.origin);
// inorganic stuff - we can recognize that
printf("type %d, index %d, character %c\n",data.type, data.subtype_idx, data.display_character);
hexdump(DF,engraved.origin,2);
hexdump(DF,engraved.origin,3);
}
}
}