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

Method saveLevelClassDescriptions

source/gamemap/GameMap.cpp:892–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890}
891
892void GameMap::saveLevelClassDescriptions(std::ofstream& levelFile)
893{
894 for (std::pair<const CreatureDefinition*,CreatureDefinition*>& def : mClassDescriptions)
895 {
896 if(def.second == nullptr)
897 continue;
898
899 CreatureDefinition::writeCreatureDefinitionDiff(def.first, def.second, levelFile, ConfigManager::getSingleton().getCreatureDefinitions());
900 }
901}
902
903const CreatureDefinition* GameMap::getClassDescription(int index)
904{

Callers 1

writeGameMapToFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected