void StatusEffect::unload() { if (!mLoaded) return; unloadMap(statusEffects[0]); unloadMap(statusEffects[1]); unloadMap(stunEffects[0]); unloadMap(stunEffects[1]); mLoaded = false; }
void StatusEffectDB::unload() { if (!mLoaded) return; logger->log1("Unloading status effect database..."); fakeId = 10000; unloadMap(statusEffects[0]); unloadMap(statusEffects[1]); optionToIdMap.clear(); opt1ToIdMap.clear(); opt2ToIdMap.clear(); opt3ToIdMap.clear(); mLoaded = false; }
void Map::unload() { unloadMap(); }
void MapManager::switchToMap(const std::string filepath) { unloadMap(currentlyDisplayedMap); MapManager::getCurrentMap()->specialTileContainer.clear(); loadMap(filepath); }