MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / DoWithMapLayerManager

Function DoWithMapLayerManager

radiantcore/layers/LayerModule.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26const char* const COMMAND_HIDELAYER("HideLayer");
27
28inline void DoWithMapLayerManager(const std::function<void(scene::ILayerManager&)>& func)
29{
30 if (!GlobalMapModule().getRoot())
31 {
32 rError() << "No map loaded, cannot do this." << std::endl;
33 return;
34 }
35
36 func(GlobalMapModule().getRoot()->getLayerManager());
37}
38
39}
40

Callers 8

createLayerMethod · 0.85
renameLayerMethod · 0.85
deleteLayerMethod · 0.85
addSelectionToLayerMethod · 0.85
moveSelectionToLayerMethod · 0.85
showLayerMethod · 0.85
hideLayerMethod · 0.85

Calls 2

rErrorFunction · 0.85
getRootMethod · 0.45

Tested by

no test coverage detected