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

Method showLayer

radiantcore/layers/LayerModule.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 }
212
213 void showLayer(const cmd::ArgumentList& args)
214 {
215 if (args.size() != 1)
216 {
217 rError() << "Usage: " << COMMAND_SHOWLAYER << " <LayerID> " << std::endl;
218 return;
219 }
220
221 DoWithMapLayerManager([&](ILayerManager& manager)
222 {
223 manager.setLayerVisibility(args[0].getInt(), true);
224 });
225 }
226
227 void hideLayer(const cmd::ArgumentList& args)
228 {

Callers

nothing calls this directly

Calls 5

rErrorFunction · 0.85
DoWithMapLayerManagerFunction · 0.85
getIntMethod · 0.80
sizeMethod · 0.45
setLayerVisibilityMethod · 0.45

Tested by

no test coverage detected