Weapon: change how enums are built.

This commit is contained in:
Guillaume Jacquemin 2022-03-11 15:39:49 +01:00
parent f36782bff0
commit d61977d758

View file

@ -29,28 +29,19 @@
using namespace Corrade; using namespace Corrade;
using namespace Magnum; using namespace Magnum;
#define c(enumerator, ...) enumerator,
enum class WeaponType { enum class WeaponType {
Melee = 0, #include "../Maps/WeaponTypes.hpp"
Shield = 5,
BulletShooter = 1,
EnergyShooter = 2,
BulletLauncher = 3,
EnergyLauncher = 4,
}; };
enum class DamageType { enum class DamageType {
Physical = 0, #include "../Maps/DamageTypes.hpp"
Piercing = 1,
Plasma = 5,
Heat = 2,
Freeze = 3,
Shock = 4,
}; };
enum class EffectColourMode { enum class EffectColourMode {
Default = 0, #include "../Maps/EffectColourModes.hpp"
Custom = 1,
}; };
#undef c
struct Weapon { struct Weapon {
Weapon() = default; Weapon() = default;