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

@@ -586,6 +586,13 @@ ResourceSet CGDwelling::dailyIncome() const
return {};
}
AnimationPath CGDwelling::getKingdomOverviewImage() const
{
const auto & baseHandler = getObjectHandler();
const auto & ourHandler = std::dynamic_pointer_cast<const DwellingInstanceConstructor>(baseHandler);
return ourHandler ? ourHandler->getKingdomOverviewImage() : AnimationPath{};
}
std::vector<CreatureID> CGDwelling::providedCreatures() const
{
if (ID == Obj::WAR_MACHINE_FACTORY || ID == Obj::REFUGEE_CAMP)