| 1644 | } |
| 1645 | |
| 1646 | void GetWounds(df::unit_wound * wound, UnitWound * send_wound) |
| 1647 | { |
| 1648 | for (size_t i = 0; i < wound->parts.size(); i++) |
| 1649 | { |
| 1650 | auto part = wound->parts[i]; |
| 1651 | auto send_part = send_wound->add_parts(); |
| 1652 | send_part->set_global_layer_idx(part->global_layer_idx); |
| 1653 | send_part->set_body_part_id(part->body_part_id); |
| 1654 | send_part->set_layer_idx(part->layer_idx); |
| 1655 | } |
| 1656 | send_wound->set_severed_part(wound->flags.bits.severed_part); |
| 1657 | } |
| 1658 | |
| 1659 | static command_result GetUnitListInside(color_ostream &stream, const BlockRequest *in, UnitList *out) |
| 1660 | { |
no test coverage detected