Use ENUM macro for Item Category enums.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1969f59a9c
commit
42050de18a
|
@ -2,9 +2,10 @@
|
||||||
#define CREATURELIB_BATTLEITEMCATEGORY_HPP
|
#define CREATURELIB_BATTLEITEMCATEGORY_HPP
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include "../../Core/Enum.hpp"
|
||||||
|
|
||||||
namespace CreatureLib::Library {
|
namespace CreatureLib::Library {
|
||||||
enum class BattleItemCategory : uint8_t { None, Healing, StatusHealing, CaptureDevice, MiscBattleItem };
|
ENUM(BattleItemCategory, uint8_t, None, Healing, StatusHealing, CaptureDevice, MiscBattleItem)
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CREATURELIB_BATTLEITEMCATEGORY_HPP
|
#endif // CREATURELIB_BATTLEITEMCATEGORY_HPP
|
||||||
|
|
|
@ -2,18 +2,10 @@
|
||||||
#define CREATURELIB_ITEMCATEGORY_HPP
|
#define CREATURELIB_ITEMCATEGORY_HPP
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include "../../Core/Enum.hpp"
|
||||||
|
|
||||||
namespace CreatureLib::Library {
|
namespace CreatureLib::Library {
|
||||||
enum class ItemCategory : uint8_t {
|
ENUM(ItemCategory, uint8_t, MiscItem, CaptureDevice, Medicine, Berry, MoveLearner, VariantChanger, KeyItem, Mail)
|
||||||
MiscItem,
|
|
||||||
CaptureDevice,
|
|
||||||
Medicine,
|
|
||||||
Berry,
|
|
||||||
TM,
|
|
||||||
VariantChanger,
|
|
||||||
KeyItem,
|
|
||||||
Mail,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // CREATURELIB_ITEMCATEGORY_HPP
|
#endif // CREATURELIB_ITEMCATEGORY_HPP
|
||||||
|
|
Loading…
Reference in New Issue