dfhack/library/include/modules/Vermin.h

43 lines
1.0 KiB
C

#pragma once
/**
* \defgroup grp_vermin Wild vermin (ants, bees, etc)
*/
2011-12-31 04:48:42 -07:00
#include "Export.h"
2012-01-07 22:59:52 -07:00
namespace DFHack { namespace Simple { namespace Vermin
{
/**
* Structure for holding a read DF vermin spawn point object
* \ingroup grp_vermin
*/
2012-01-07 22:59:52 -07:00
struct t_vermin
{
void * origin;
int16_t race;
uint16_t type;
uint16_t x;
uint16_t y;
uint16_t z;
bool in_use;
uint8_t unknown;
uint32_t countdown;
};
2012-01-07 22:59:52 -07:00
static const uint16_t TYPE_WILD_COLONY = 0xFFFF;
/**
2012-01-07 22:59:52 -07:00
* Get number of vermin objects
*/
2012-01-07 22:59:52 -07:00
DFHACK_EXPORT uint32_t getNumVermin();
/**
* Read from vermin object
*/
DFHACK_EXPORT bool Read (const uint32_t index, t_vermin & point);
/**
* Write into vermin object
*/
DFHACK_EXPORT bool Write (const uint32_t index, t_vermin & point);
/**
* Is vermin object a colony?
*/
DFHACK_EXPORT bool isWildColony(t_vermin & point);
} } } // end DFHack::Simple::Vermin