dfhack/plugins/remotefortressreader/item_reader.h

31 lines
739 B
C

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-25 19:49:41 -07:00
typedef df::art_image * (__thiscall *GET_IMAGE)(df::world*, df::art_image_ref *, int *);
2018-01-17 06:40:19 -07:00
#endif // !ITEM_READER_H