1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

GameConstants upd

This commit is contained in:
SoundSSGood 2023-03-18 00:48:10 +02:00
parent 72122fb433
commit 37edffd788

View File

@ -1039,6 +1039,15 @@ public:
ID_LIKE_CLASS_COMMON(ArtifactPosition, EArtifactPosition)
EArtifactPosition num;
STRONG_INLINE EArtifactPosition operator+(const int arg)
{
return EArtifactPosition(static_cast<int>(num) + arg);
}
STRONG_INLINE EArtifactPosition operator+(const EArtifactPosition & arg)
{
return EArtifactPosition(static_cast<int>(num) + static_cast<int>(arg));
}
};
ID_LIKE_OPERATORS(ArtifactPosition, ArtifactPosition::EArtifactPosition)