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

Method createLayer

radiantcore/layers/LayerModule.cpp:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108private:
109 void createLayer(const cmd::ArgumentList& args)
110 {
111 if (args.size() != 1)
112 {
113 rError() << "Usage: " << COMMAND_CREATELAYER << " <LayerName> " << std::endl;
114 return;
115 }
116
117 DoWithMapLayerManager([&](ILayerManager& manager)
118 {
119 manager.createLayer(args[0].getString());
120 GlobalMapModule().setModified(true);
121 });
122 }
123
124 void renameLayer(const cmd::ArgumentList& args)
125 {

Callers

nothing calls this directly

Calls 5

rErrorFunction · 0.85
DoWithMapLayerManagerFunction · 0.85
setModifiedMethod · 0.80
sizeMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected