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

Function get_spouse_hfid

plugins/preserve-rooms.cpp:292–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292static int32_t get_spouse_hfid(color_ostream &out, df::historical_figure *hf) {
293 for (auto link : hf->histfig_links) {
294 if (link->getType() == df::histfig_hf_link_type::SPOUSE)
295 return link->target_hf;
296 }
297 return -1;
298}
299
300static vector<int32_t> get_spouse_ids(color_ostream &out, const vector<df::unit *> units) {
301 vector<int32_t> spouse_ids;

Callers 3

get_spouse_idsFunction · 0.85
process_roomsFunction · 0.85
spouse_has_sharable_roomFunction · 0.85

Calls 1

getTypeMethod · 0.80

Tested by

no test coverage detected