MCPcopy Create free account
hub / github.com/DFHack/dfhack / GetWounds

Function GetWounds

plugins/remotefortressreader/remotefortressreader.cpp:1646–1657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1644}
1645
1646void 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
1659static command_result GetUnitListInside(color_ostream &stream, const BlockRequest *in, UnitList *out)
1660{

Callers 1

GetUnitListInsideFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected