From 923ca2b89e0fa1db0dc130bc83af3fed1327fa0a Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 16 Dec 2025 00:39:30 +0300 Subject: [PATCH] format Inventories.hpp --- src/items/Inventories.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/items/Inventories.hpp b/src/items/Inventories.hpp index 1af4ec8af..98e956839 100644 --- a/src/items/Inventories.hpp +++ b/src/items/Inventories.hpp @@ -11,7 +11,7 @@ class Level; using inventories_map = std::unordered_map>; -/* Inventories runtime storage */ +/// @brief Inventories runtime storage class Inventories { Level& level; inventories_map map; @@ -20,21 +20,22 @@ public: Inventories(Level& level); ~Inventories(); - /* Create new inventory with new id */ + /// @brief Create new inventory with new id std::shared_ptr create(size_t size); - /* Create runtime-only inventory (has negative id) */ + /// @brief Create runtime-only inventory (has negative id) std::shared_ptr createVirtual(size_t size); - /* Store inventory */ + /// @brief Store inventory void store(const std::shared_ptr& inv); - /* Remove inventory from map */ + /// @brief Remove inventory from map void remove(int64_t id); - /* Get inventory by id (works with both real and virtual)*/ + /// @brief Get inventory by id (works with both real and virtual) std::shared_ptr get(int64_t id); + /// @brief Create inventory non-virtual copy std::shared_ptr clone(int64_t id); const inventories_map& getMap() const;