Weapon: change how enums are built.
This commit is contained in:
parent
f36782bff0
commit
d61977d758
1 changed files with 5 additions and 14 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue