|
|
@ -363,17 +363,24 @@ namespace DFHack
|
|
|
|
bool Start( uint32_t & numCreatures);
|
|
|
|
bool Start( uint32_t & numCreatures);
|
|
|
|
bool Finish();
|
|
|
|
bool Finish();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Read Functions */
|
|
|
|
// Read creatures in a box, starting with index. Returns -1 if no more creatures
|
|
|
|
// Read creatures in a box, starting with index. Returns -1 if no more creatures
|
|
|
|
// found. Call repeatedly do get all creatures in a specified box (uses tile coords)
|
|
|
|
// found. Call repeatedly do get all creatures in a specified box (uses tile coords)
|
|
|
|
int32_t ReadCreatureInBox(const int32_t index, t_creature & furball,
|
|
|
|
int32_t ReadCreatureInBox(const int32_t index, t_creature & furball,
|
|
|
|
const uint16_t x1, const uint16_t y1,const uint16_t z1,
|
|
|
|
const uint16_t x1, const uint16_t y1,const uint16_t z1,
|
|
|
|
const uint16_t x2, const uint16_t y2,const uint16_t z2);
|
|
|
|
const uint16_t x2, const uint16_t y2,const uint16_t z2);
|
|
|
|
bool ReadCreature(const int32_t index, t_creature & furball);
|
|
|
|
bool ReadCreature(const int32_t index, t_creature & furball);
|
|
|
|
/// write labors of a creature (for Dwarf Therapist)
|
|
|
|
bool ReadJob(const t_creature * furball, std::vector<t_material> & mat);
|
|
|
|
bool WriteLabors(const uint32_t index, uint8_t labors[NUM_CREATURE_LABORS]);
|
|
|
|
|
|
|
|
|
|
|
|
/* Getters */
|
|
|
|
uint32_t GetDwarfRaceIndex ( void );
|
|
|
|
uint32_t GetDwarfRaceIndex ( void );
|
|
|
|
int32_t GetDwarfCivId ( void );
|
|
|
|
int32_t GetDwarfCivId ( void );
|
|
|
|
bool ReadJob(const t_creature * furball, std::vector<t_material> & mat);
|
|
|
|
|
|
|
|
|
|
|
|
/* Write Functions */
|
|
|
|
|
|
|
|
// write labors of a creature (for Dwarf Therapist)
|
|
|
|
|
|
|
|
bool WriteLabors(const uint32_t index, uint8_t labors[NUM_CREATURE_LABORS]);
|
|
|
|
|
|
|
|
bool WriteHappiness(const uint32_t index, const uint32_t happinessValue);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
struct Private;
|
|
|
|
struct Private;
|
|
|
|
Private *d;
|
|
|
|
Private *d;
|
|
|
|