2018-01-17 06:40:19 -07:00
|
|
|
#ifndef ITEM_READER_H
|
|
|
|
#define ITEM_READER_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "RemoteClient.h"
|
|
|
|
#include "RemoteFortressReader.pb.h"
|
|
|
|
|
|
|
|
#include "DataDefs.h"
|
|
|
|
|
|
|
|
namespace df
|
|
|
|
{
|
|
|
|
struct item;
|
|
|
|
struct map_block;
|
2018-01-25 19:49:41 -07:00
|
|
|
struct art_image;
|
|
|
|
struct art_image_ref;
|
|
|
|
struct world;
|
2018-01-17 06:40:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace MapExtras
|
|
|
|
{
|
2018-01-18 19:55:16 -07:00
|
|
|
class MapCache;
|
2018-01-17 06:40:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
DFHack::command_result GetItemList(DFHack::color_ostream &stream, const DFHack::EmptyMessage *in, RemoteFortressReader::MaterialList *out);
|
|
|
|
void CopyItem(RemoteFortressReader::Item * NetItem, df::item * DfItem);
|
|
|
|
void ConvertDFColorDescriptor(int16_t index, RemoteFortressReader::ColorDefinition * out);
|
|
|
|
|
2018-01-27 00:14:51 -07:00
|
|
|
#if(defined(WIN32) && !defined(_WIN64))
|
|
|
|
typedef df::art_image * (__thiscall *GET_IMAGE)(df::world*, df::art_image_ref *, int16_t *);
|
|
|
|
#else
|
|
|
|
typedef df::art_image *(__fastcall *GET_IMAGE)(df::world *, df::art_image_ref *, int16_t *);
|
|
|
|
#endif
|
|
|
|
|
2018-01-25 19:49:41 -07:00
|
|
|
|
2018-01-17 06:40:19 -07:00
|
|
|
#endif // !ITEM_READER_H
|