Class ItemManager

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< ItemManager >

Class Documentation

class game::item::ItemManager : public std::enable_shared_from_this<ItemManager>

Public Functions

ItemManager(std::shared_ptr<core::cache::Redis> redis, std::shared_ptr<core::mysql::MySQL> database)
~ItemManager()
void QueryItems(uint32_t playerId, uint16_t window, const std::function<void(std::shared_ptr<std::vector<std::shared_ptr<Item>>>)> &cb)
void RemoveFromWindow(uint16_t window, uint32_t playerId, uint64_t id)
void AddToWindow(uint16_t window, uint32_t playerId, uint64_t id)
std::shared_ptr<Item> CreateItem(uint32_t vnum, uint32_t owner)
void GetItemById(uint64_t id, const std::function<void(std::shared_ptr<Item>)> &cb)
void Load()
bool HasProto(uint32_t id) const
const formats::Item &GetProto(uint32_t id) const