1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

[Refactoring] use virtual method for object specific actions when new map object is created

* --TODO
* fixes CID 1366291, CID 1366297
This commit is contained in:
AlexVinS
2017-05-28 16:23:42 +03:00
parent fc55efb72d
commit 70a092f58c
12 changed files with 63 additions and 34 deletions

View File

@@ -345,9 +345,14 @@ void CGObjectInstance::serializeJson(JsonSerializeFormat & handler)
}
}
void CGObjectInstance::afterAddToMap(CMap * map)
{
//nothing here
}
void CGObjectInstance::serializeJsonOptions(JsonSerializeFormat & handler)
{
//nothing here
}
void CGObjectInstance::serializeJsonOwner(JsonSerializeFormat & handler)