MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Select

Method Select

Source/Objects/object.cpp:526–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526void Object::Select(bool val) {
527 static unsigned int selection_counter_ = 1;
528
529 if (val && selectable_) {
530 selected_ = selection_counter_++;
531 } else {
532 selected_ = false;
533 }
534}
535
536ObjectSanityState Object::GetSanity() {
537 return ObjectSanityState(GetType(), id, 0);

Callers 15

UnselectAllMethod · 0.45
BoxSelectEntitiesFunction · 0.45
UpdateEnabledObjectsMethod · 0.45
GroupSelectedMethod · 0.45
PrefabSelectedMethod · 0.45
HandleShortcutsMethod · 0.45
HandleScrollSelectMethod · 0.45
SelectAllMethod · 0.45
CheckForSelectionsMethod · 0.45
DeselectAllMethod · 0.45
SetTypeEnabledMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected