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

Method UpdateEnabledObjects

Source/Editors/map_editor.cpp:556–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void MapEditor::UpdateEnabledObjects() {
557 for (auto obj : scenegraph_->objects_) {
558 obj->editor_visible = type_visible_.IsTypeEnabled(obj->GetType());
559 if (!type_enable_.IsTypeEnabled(obj->GetType())) {
560 obj->Select(false);
561 }
562 }
563}
564
565void MapEditor::InitializeColorHistory() {
566 for (auto& i : color_history_) {

Callers 1

LoadLevelMethod · 0.80

Calls 3

IsTypeEnabledMethod · 0.45
GetTypeMethod · 0.45
SelectMethod · 0.45

Tested by

no test coverage detected