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

Method onMapEvent

plugins/dm.gameconnection/GameConnection.cpp:659–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659void GameConnection::onMapEvent(IMap::MapEvent ev)
660{
661 if (ev == IMap::MapSaved && _autoReloadMap) {
662 reloadMap();
663 _mapObserver.clear();
664 }
665 if (ev == IMap::MapLoading || ev == IMap::MapUnloading) {
666 disconnect();
667 }
668}
669
670void GameConnection::setAutoReloadMapEnabled(bool enable)
671{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected