1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

kingdom overview dwellings for mods

This commit is contained in:
Laserlicht
2025-09-02 02:58:55 +02:00
parent 83e2bfde11
commit a3a234f8e0
7 changed files with 38 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ void DwellingInstanceConstructor::initTypeData(const JsonNode & input)
}
guards = input["guards"];
bannedForRandomDwelling = input["bannedForRandomDwelling"].Bool();
kingdomOverviewImage = AnimationPath::fromJson(input["kingdomOverviewImage"]);
for (const auto & mapTemplate : getTemplates())
onTemplateAdded(mapTemplate);
@@ -179,4 +180,9 @@ std::vector<const CCreature *> DwellingInstanceConstructor::getProducedCreatures
return creatures;
}
AnimationPath DwellingInstanceConstructor::getKingdomOverviewImage() const
{
return kingdomOverviewImage;
}
VCMI_LIB_NAMESPACE_END