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

Method SetTypeEnabled

Source/Editors/map_editor.cpp:2842–2849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2840}
2841
2842void MapEditor::SetTypeEnabled(EntityType type, bool enabled) {
2843 type_enable_.SetTypeEnabled(type, enabled);
2844 for (auto obj : scenegraph_->objects_) {
2845 if (!type_enable_.IsTypeEnabled(obj->GetType())) {
2846 obj->Select(false);
2847 }
2848 }
2849}
2850
2851bool MapEditor::IsTypeVisible(EntityType type) {
2852 return type_visible_.IsTypeEnabled(type);

Callers 3

LoadLevelMethod · 0.45
SetTypeVisibleMethod · 0.45
DrawImGuiFunction · 0.45

Calls 3

IsTypeEnabledMethod · 0.45
GetTypeMethod · 0.45
SelectMethod · 0.45

Tested by

no test coverage detected