Send tiles for shape descriptors, and art image ids.

develop
Japa 2018-02-03 10:38:17 +05:30
parent e63a871363
commit 8665600574
3 changed files with 6 additions and 2 deletions

@ -882,6 +882,7 @@ message Status
message ShapeDescriptior
{
optional string id = 1;
optional int32 tile = 2;
}
message Language
@ -936,4 +937,5 @@ message ArtImageElement
message ArtImage
{
repeated ArtImageElement elements = 1;
optional MatPair id = 2;
}

@ -49,6 +49,9 @@ using namespace df::global;
void CopyImage(const df::art_image * image, ArtImage * netImage)
{
auto id = netImage->mutable_id();
id->set_mat_type(image->id);
id->set_mat_index(image->subid);
for (int i = 0; i < image->elements.size(); i++)
{
auto element = image->elements[i];

@ -53,8 +53,6 @@
#include "df/creature_raw.h"
#include "df/creature_raw.h"
#include "df/descriptor_color.h"
#include "df/descriptor_color.h"
#include "df/descriptor_pattern.h"
#include "df/descriptor_pattern.h"
#include "df/descriptor_shape.h"
#include "df/dfhack_material_category.h"
@ -2919,6 +2917,7 @@ static command_result GetLanguage(color_ostream & stream, const EmptyMessage * i
auto shape = world->raws.language.shapes[i];
auto netShape = out->add_shapes();
netShape->set_id(shape->id);
netShape->set_tile(shape->tile);
}
return CR_OK;
}