aboutsummaryrefslogtreecommitdiff
path: root/src/client/item/items.cc
blob: 9ff25fe27fa0a4b902fbc82c3e631da022ec2e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "client/item/items.hh"

namespace client {
namespace item {

shared::item::item_t make_item(const shared::item::item::type_t& type,
                               const std::uint32_t& quantity) noexcept {
    if (type >= shared::item::block::type_offset) {
        return std::make_shared<client::item::block>(type, quantity);
    }
    // TODO non-block items
    return std::make_shared<client::item::block>(type, quantity);
}

} // namespace item
} // namespace client