1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Initial implementation for rewardable town building

This commit is contained in:
nordsoft
2023-04-30 05:29:34 +04:00
parent 2adcc89a0d
commit f9767a3179
5 changed files with 156 additions and 6 deletions

View File

@@ -21,6 +21,7 @@
#include "../mapObjects/CRewardableConstructor.h"
#include "../mapObjects/CommonConstructors.h"
#include "../mapObjects/MapObjects.h"
#include "../mapObjects/CGTownBuilding.h"
#include "../battle/CObstacleInstance.h"
#include "../CStack.h"
@@ -153,7 +154,8 @@ void registerTypesMapObjects2(Serializer &s)
//Other object-related
s.template registerType<IObjectInterface, CGTownBuilding>();
s.template registerType<CGTownBuilding, CTownBonus>();
s.template registerType<CGTownBuilding, COPWBonus>();
s.template registerType<CGTownBuilding, COPWBonus>();
s.template registerType<CGTownBuilding, CTownRewardableBuilding>();
s.template registerType<CGObjectInstance, CRewardableObject>();