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

Method hideLayer

radiantcore/layers/LayerModule.cpp:227–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 }
226
227 void hideLayer(const cmd::ArgumentList& args)
228 {
229 if (args.size() != 1)
230 {
231 rError() << "Usage: " << COMMAND_HIDELAYER << " <LayerID> " << std::endl;
232 return;
233 }
234
235 DoWithMapLayerManager([&](ILayerManager& manager)
236 {
237 manager.setLayerVisibility(args[0].getInt(), false);
238 });
239 }
240};
241
242module::StaticModuleRegistration<LayerModule> layerManagerFactoryModule;

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