Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -4,13 +4,7 @@
|
||||
#include <cstdint>
|
||||
|
||||
namespace CreatureLib::Library {
|
||||
enum class BattleItemCategory : uint8_t {
|
||||
None,
|
||||
Healing,
|
||||
StatusHealing,
|
||||
CaptureDevice,
|
||||
MiscBattleItem
|
||||
};
|
||||
enum class BattleItemCategory : uint8_t { None, Healing, StatusHealing, CaptureDevice, MiscBattleItem };
|
||||
}
|
||||
|
||||
#endif //CREATURELIB_BATTLEITEMCATEGORY_HPP
|
||||
#endif // CREATURELIB_BATTLEITEMCATEGORY_HPP
|
||||
|
||||
@@ -3,18 +3,20 @@
|
||||
|
||||
#include <string>
|
||||
#include <unordered_set>
|
||||
#include "ItemCategory.hpp"
|
||||
#include "BattleItemCategory.hpp"
|
||||
#include "../../GenericTemplates.cpp"
|
||||
#include "BattleItemCategory.hpp"
|
||||
#include "ItemCategory.hpp"
|
||||
|
||||
namespace CreatureLib::Library {
|
||||
class Item {
|
||||
GetProperty(std::string, Name);
|
||||
GetProperty(ItemCategory, Category);
|
||||
GetProperty(BattleItemCategory, BattleCategory);
|
||||
GetProperty(int32_t , Price);
|
||||
GetProperty(int32_t, Price);
|
||||
|
||||
private:
|
||||
std::unordered_set<std::string> _flags;
|
||||
|
||||
public:
|
||||
Item(std::string name, ItemCategory category, BattleItemCategory battleCategory, int32_t price,
|
||||
std::unordered_set<std::string> flags);
|
||||
@@ -23,4 +25,4 @@ namespace CreatureLib::Library {
|
||||
};
|
||||
}
|
||||
|
||||
#endif //CREATURELIB_ITEM_HPP
|
||||
#endif // CREATURELIB_ITEM_HPP
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace CreatureLib::Library{
|
||||
namespace CreatureLib::Library {
|
||||
enum class ItemCategory : uint8_t {
|
||||
MiscItem,
|
||||
CaptureDevice,
|
||||
@@ -16,4 +16,4 @@ namespace CreatureLib::Library{
|
||||
};
|
||||
}
|
||||
|
||||
#endif //CREATURELIB_ITEMCATEGORY_HPP
|
||||
#endif // CREATURELIB_ITEMCATEGORY_HPP
|
||||
|
||||
Reference in New Issue
Block a user