mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
EWallPart & EWallState are now enum class
This commit is contained in:
@@ -15,13 +15,13 @@ VCMI_LIB_NAMESPACE_BEGIN
|
||||
//only for use in BattleInfo
|
||||
struct DLL_LINKAGE SiegeInfo
|
||||
{
|
||||
std::array<si8, EWallPart::PARTS_COUNT> wallState;
|
||||
std::map<EWallPart, EWallState> wallState;
|
||||
EGateState gateState;
|
||||
|
||||
SiegeInfo();
|
||||
|
||||
// return EWallState decreased by value of damage points
|
||||
static EWallState::EWallState applyDamage(EWallState::EWallState state, unsigned int value);
|
||||
static EWallState applyDamage(EWallState state, unsigned int value);
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user