mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Removed broken & unused serialization of player interface and AI
This commit is contained in:
@ -243,28 +243,4 @@ void CAdventureAI::yourTacticPhase(const BattleID & battleID, int distance)
|
||||
battleAI->yourTacticPhase(battleID, distance);
|
||||
}
|
||||
|
||||
void CAdventureAI::saveGame(BinarySerializer & h) /*saving */
|
||||
{
|
||||
bool hasBattleAI = static_cast<bool>(battleAI);
|
||||
h & hasBattleAI;
|
||||
if(hasBattleAI)
|
||||
{
|
||||
h & battleAI->dllName;
|
||||
}
|
||||
}
|
||||
|
||||
void CAdventureAI::loadGame(BinaryDeserializer & h) /*loading */
|
||||
{
|
||||
bool hasBattleAI = false;
|
||||
h & hasBattleAI;
|
||||
if(hasBattleAI)
|
||||
{
|
||||
std::string dllName;
|
||||
h & dllName;
|
||||
battleAI = CDynLibHandler::getNewBattleAI(dllName);
|
||||
assert(cbc); //it should have been set by the one who new'ed us
|
||||
battleAI->initBattleInterface(env, cbc);
|
||||
}
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user