浏览代码

HeroBonus: move TBonusSubtype from GameConstants.h

Konstantin 2 年之前
父节点
当前提交
48bcfe74f7
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 1
      lib/GameConstants.h
  2. 1 1
      lib/bonuses/HeroBonus.h

+ 0 - 1
lib/GameConstants.h

@@ -1339,7 +1339,6 @@ enum class EHealPower : ui8
 
 // Typedef declarations
 using TExpType = si64;
-using TBonusSubtype = si32;
 using TQuantity = si32;
 
 using TRmgTemplateZoneId = int;

+ 1 - 1
lib/bonuses/HeroBonus.h

@@ -9,7 +9,6 @@
  */
 #pragma once
 
-#include "../GameConstants.h"
 #include "../JsonNode.h"
 
 VCMI_LIB_NAMESPACE_BEGIN
@@ -22,6 +21,7 @@ class IPropagator;
 class IUpdater;
 class BonusList;
 
+using TBonusSubtype = int32_t;
 using TBonusListPtr = std::shared_ptr<BonusList>;
 using TConstBonusListPtr = std::shared_ptr<const BonusList>;
 using TLimiterPtr = std::shared_ptr<ILimiter>;