mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Implemented explicitly visitable town buildings, e.g. hota mana vortex
Added flag `manualHeroVisit` flag to town building. If this flag is set, then building will only be activated on click and will not give its effect on hero recrutiment, hero visit, or new day. This allows implementing changes to Mana Vortex from HotA
This commit is contained in:
@@ -280,16 +280,16 @@ struct DLL_LINKAGE BuildStructure : public CPackForServer
|
||||
}
|
||||
};
|
||||
|
||||
struct DLL_LINKAGE TriggerTownSpecialBuildingAction : public CPackForServer
|
||||
struct DLL_LINKAGE VisitTownBuilding : public CPackForServer
|
||||
{
|
||||
TriggerTownSpecialBuildingAction() = default;
|
||||
TriggerTownSpecialBuildingAction(const ObjectInstanceID & TID, const BuildingSubID::EBuildingSubID SID)
|
||||
VisitTownBuilding() = default;
|
||||
VisitTownBuilding(const ObjectInstanceID & TID, const BuildingID BID)
|
||||
: tid(TID)
|
||||
, sid(SID)
|
||||
, bid(BID)
|
||||
{
|
||||
}
|
||||
ObjectInstanceID tid;
|
||||
BuildingSubID::EBuildingSubID sid;
|
||||
BuildingID bid;
|
||||
|
||||
void visitTyped(ICPackVisitor & visitor) override;
|
||||
|
||||
@@ -297,7 +297,7 @@ struct DLL_LINKAGE TriggerTownSpecialBuildingAction : public CPackForServer
|
||||
{
|
||||
h & static_cast<CPackForServer &>(*this);
|
||||
h & tid;
|
||||
h & sid;
|
||||
h & bid;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user