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:
@@ -8,21 +8,18 @@
|
||||
namespace CreatureLib::Library {
|
||||
class ItemLibrary {
|
||||
private:
|
||||
std::unordered_map<std::string, const Item *> _items;
|
||||
std::unordered_map<std::string, const Item*> _items;
|
||||
|
||||
public:
|
||||
ItemLibrary() = default;
|
||||
~ItemLibrary(){
|
||||
_items.clear();
|
||||
}
|
||||
~ItemLibrary() { _items.clear(); }
|
||||
|
||||
[[nodiscard]] const Item* GetItem(const std::string& name) const;
|
||||
[[nodiscard]] const Item* operator[] (const std::string& name) const;
|
||||
[[nodiscard]] const Item* operator[](const std::string& name) const;
|
||||
|
||||
void LoadItem(const std::string& name, const Item* item);
|
||||
void DeleteItem(const std::string& name);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif //CREATURELIB_ITEMLIBRARY_HPP
|
||||
#endif // CREATURELIB_ITEMLIBRARY_HPP
|
||||
|
||||
Reference in New Issue
Block a user