Add soldier state to remotefortressreader.cpp

develop
Japa 2015-09-07 22:41:24 +05:30
parent 07c601be99
commit 3b36a23404
2 changed files with 5 additions and 4 deletions

@ -179,10 +179,10 @@ message UnitDefinition
optional int32 pos_z = 5; optional int32 pos_z = 5;
optional MatPair race = 6; optional MatPair race = 6;
optional ColorDefinition profession_color = 7; optional ColorDefinition profession_color = 7;
optional uint32 flags1 = 8; optional uint32 flags1 = 8;
optional uint32 flags2 = 9; optional uint32 flags2 = 9;
optional uint32 flags3 = 10; optional uint32 flags3 = 10;
optional bool is_soldier = 11;
} }
message UnitList message UnitList

@ -965,6 +965,7 @@ static command_result GetUnitList(color_ostream &stream, const EmptyMessage *in,
send_unit->set_flags1(unit->flags1.whole); send_unit->set_flags1(unit->flags1.whole);
send_unit->set_flags2(unit->flags2.whole); send_unit->set_flags2(unit->flags2.whole);
send_unit->set_flags3(unit->flags3.whole); send_unit->set_flags3(unit->flags3.whole);
send_unit->set_is_soldier(ENUM_ATTR(profession, military, unit->profession));
} }
return CR_OK; return CR_OK;
} }