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

Method setMapName

radiantcore/map/Map.cpp:301–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void Map::setMapName(const std::string& newName)
302{
303 bool mapNameChanged = _mapName != newName;
304
305 // Store the name into the member
306 _mapName = newName;
307
308 // Update the map resource's root node, if there is one
309 if (_resource)
310 {
311 _resource->rename(newName);
312 }
313
314 if (mapNameChanged)
315 {
316 // Fire the signal to any observers
317 signal_mapNameChanged().emit();
318 }
319}
320
321sigc::signal<void>& Map::signal_mapNameChanged()
322{

Callers 1

openMapFromArchiveMethod · 0.80

Calls 1

renameMethod · 0.45

Tested by

no test coverage detected