Fix weather tool/offsets for 31.18. Added a file I missed.

develop
Petr Mrázek 2010-11-19 01:14:41 +01:00
parent ac91f46b6c
commit c13b7c035f
3 changed files with 33 additions and 1 deletions

@ -1867,7 +1867,7 @@
<Group name="World" valid="false"> <Group name="World" valid="false">
<Address name="current_tick" description="Current time of the year" /> <Address name="current_tick" description="Current time of the year" />
<Address name="current_year" description="Current year" /> <Address name="current_year" description="Current year" />
<Address name="current_weather" description="5x5 array of bytes for surrounding biomes. For each: 0=clear, 1=raining, 2=snowing." /> <Address name="current_weather" value="0x14c9bb8" valid="true" />
</Group> </Group>
</Offsets> </Offsets>

@ -0,0 +1,31 @@
// vim: sts=4 sta et shiftwidth=4:
#include "dfhack/DFIntegers.h"
#include "dfhack/DFTileTypes.h"
#include "dfhack/DFExport.h"
namespace DFHack {
//set tile class string lookup table (e.g. for printing to user)
#define X(name,comment) #name,
DFHACK_EXPORT const char * TileClassString[tileclass_count+1] = {
TILECLASS_MACRO
0
};
#undef X
//string lookup table (e.g. for printing to user)
#define X(name,comment) #name,
DFHACK_EXPORT const char * TileMaterialString[tilematerial_count+1] = {
TILEMATERIAL_MACRO
0
};
#undef X
//string lookup table (e.g. for printing to user)
#define X(name,comment) #name,
DFHACK_EXPORT const char * TileSpecialString[tilespecial_count+1] = {
TILESPECIAL_MACRO
0
};
#undef X
}

@ -114,6 +114,7 @@ int main (int argc, char** argv)
cin.ignore(); cin.ignore();
} }
#endif #endif
DF->Resume();
DF->Detach(); DF->Detach();
return 0; return 0;
} }