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

Method getFirstSelectedElem

plugins/listcolumn.h:313–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 }
312
313 T getFirstSelectedElem()
314 {
315 vector<T> results = getSelectedElems(true);
316 if (results.size() == 0)
317 return default_value;
318 else
319 return results[0];
320 }
321
322 bool hasSelection()
323 {

Callers 9

feedMethod · 0.80
feedMethod · 0.80
feedMethod · 0.80
populateDwarfColumnMethod · 0.80
feedMethod · 0.80
populateDwarfColumnMethod · 0.80
getSelectedUnitMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected