Use ENUM macro for Item Category enums.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-02-13 10:49:45 +01:00
parent 1969f59a9c
commit 42050de18a
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 4 additions and 11 deletions

View File

@ -2,9 +2,10 @@
#define CREATURELIB_BATTLEITEMCATEGORY_HPP
#include <cstdint>
#include "../../Core/Enum.hpp"
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

View File

@ -2,18 +2,10 @@
#define CREATURELIB_ITEMCATEGORY_HPP
#include <cstdint>
#include "../../Core/Enum.hpp"
namespace CreatureLib::Library {
enum class ItemCategory : uint8_t {
MiscItem,
CaptureDevice,
Medicine,
Berry,
TM,
VariantChanger,
KeyItem,
Mail,
};
ENUM(ItemCategory, uint8_t, MiscItem, CaptureDevice, Medicine, Berry, MoveLearner, VariantChanger, KeyItem, Mail)
}
#endif // CREATURELIB_ITEMCATEGORY_HPP