|
|
|
@ -278,8 +278,8 @@ namespace DFHack
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME: define in Memory.xml instead?
|
|
|
|
|
#define NUM_CREATURE_TRAITS 30
|
|
|
|
|
#define NUM_CREATURE_LABORS 102
|
|
|
|
|
#define NUM_CREATURE_TRAITS 30
|
|
|
|
|
#define NUM_CREATURE_LABORS 102
|
|
|
|
|
|
|
|
|
|
struct t_soul
|
|
|
|
|
{
|
|
|
|
@ -363,17 +363,24 @@ namespace DFHack
|
|
|
|
|
bool Start( uint32_t & numCreatures);
|
|
|
|
|
bool Finish();
|
|
|
|
|
|
|
|
|
|
/* Read Functions */
|
|
|
|
|
// 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)
|
|
|
|
|
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 x2, const uint16_t y2,const uint16_t z2);
|
|
|
|
|
bool ReadCreature(const int32_t index, t_creature & furball);
|
|
|
|
|
/// write labors of a creature (for Dwarf Therapist)
|
|
|
|
|
bool WriteLabors(const uint32_t index, uint8_t labors[NUM_CREATURE_LABORS]);
|
|
|
|
|
bool ReadJob(const t_creature * furball, std::vector<t_material> & mat);
|
|
|
|
|
|
|
|
|
|
/* Getters */
|
|
|
|
|
uint32_t GetDwarfRaceIndex ( 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:
|
|
|
|
|
struct Private;
|
|
|
|
|
Private *d;
|
|
|
|
|