dfhack/plugins/remotefortressreader/item_reader.h

33 lines
838 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_chunk;
2018-01-25 19:49:41 -07:00
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);
typedef df::art_image_chunk * (*GET_ART_IMAGE_CHUNK)(std::vector<df::art_image_chunk* > *, int);
2018-01-27 00:14:51 -07:00
void CopyImage(const df::art_image * image, RemoteFortressReader::ArtImage * netImage);
2018-01-25 19:49:41 -07:00
2018-01-17 06:40:19 -07:00
#endif // !ITEM_READER_H