MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / consoleToggleCreatureVisualDebug

Method consoleToggleCreatureVisualDebug

source/gamemap/GameMap.cpp:2736–2747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2734}
2735
2736void GameMap::consoleToggleCreatureVisualDebug(const std::string& creatureName)
2737{
2738 Creature* creature = getCreature(creatureName);
2739 if(creature == nullptr)
2740 return;
2741
2742 bool enable = !creature->getHasVisualDebuggingEntities();
2743 if(enable)
2744 creature->computeVisualDebugEntities();
2745 else
2746 creature->stopComputeVisualDebugEntities();
2747}
2748
2749void GameMap::consoleToggleSeatVisualDebug(int seatId)
2750{

Callers 1

cSrvCreatureVisDebugFunction · 0.80

Tested by

no test coverage detected