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
1 changed files with 5 additions and 14 deletions

View File

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