Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-11-28 12:55:22 +01:00
parent 3b685ae782
commit a8730d983f
91 changed files with 946 additions and 1121 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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