moving the t_material structure to the Materials.h file

develop
simon 2010-04-28 17:40:27 +02:00
parent c37f164c39
commit 8065867a3b
4 changed files with 13 additions and 10 deletions

@ -7,9 +7,9 @@
#include "DFMemInfo.h"
#include "DFProcess.h"
#include "modules/Materials.h"
#include "modules/Creatures.h"
#include "modules/Maps.h"
#include "modules/Materials.h"
#include "modules/Position.h"
#include "modules/Translation.h"
#include "modules/Vegetation.h"
@ -59,4 +59,4 @@ void APIPrivate::readName(t_name & name, uint32_t address)
p->readSTLString(address + name_firstname_offset , name.first_name, 128);
p->readSTLString(address + name_nickname_offset , name.nickname, 128);
p->read(address + name_words_offset ,48, (uint8_t *) name.words);
}
}

@ -260,14 +260,6 @@ namespace DFHack
uint32_t experience;
uint16_t rating;
};
struct t_material
{
int16_t typeA;
int16_t typeB;
int16_t typeC;
int32_t typeD;
uint32_t flags;
};
struct t_job
{
bool active;

@ -58,6 +58,16 @@ namespace DFHack
uint16_t bright;
} tilecolor;
};
// this structure describes what are things made of in the DF world
struct t_material
{
int16_t typeA;
int16_t typeB;
int16_t typeC;
int32_t typeD;
uint32_t flags;
};
class DFHACK_EXPORT Materials
{

@ -35,6 +35,7 @@ distribution.
#include <shms.h>
#include <mod-core.h>
#include <mod-creature2010.h>
#include "modules/Materials.h"
#include "modules/Creatures.h"