|
|
@ -50,7 +50,7 @@ Module* DFHack::createItems(DFContextShared * d)
|
|
|
|
enum accessor_type {ACCESSOR_CONSTANT, ACCESSOR_INDIRECT, ACCESSOR_DOUBLE_INDIRECT};
|
|
|
|
enum accessor_type {ACCESSOR_CONSTANT, ACCESSOR_INDIRECT, ACCESSOR_DOUBLE_INDIRECT};
|
|
|
|
|
|
|
|
|
|
|
|
/* this is used to store data about the way accessors work */
|
|
|
|
/* this is used to store data about the way accessors work */
|
|
|
|
class DFHACK_EXPORT Accessor
|
|
|
|
class Accessor
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
enum DataWidth {
|
|
|
|
enum DataWidth {
|
|
|
@ -73,7 +73,7 @@ public:
|
|
|
|
int32_t getValue(uint32_t objectPtr);
|
|
|
|
int32_t getValue(uint32_t objectPtr);
|
|
|
|
bool isConstant();
|
|
|
|
bool isConstant();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class DFHACK_EXPORT ItemImprovementDesc
|
|
|
|
class ItemImprovementDesc
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
Accessor * AType;
|
|
|
|
Accessor * AType;
|
|
|
@ -85,7 +85,7 @@ public:
|
|
|
|
uint32_t maintype;
|
|
|
|
uint32_t maintype;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class DFHACK_EXPORT ItemDesc
|
|
|
|
class ItemDesc
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
Accessor * AMainType;
|
|
|
|
Accessor * AMainType;
|
|
|
|