/* core/item.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ #include "core/item.h" #include "sys/sys.h" namespace core { /* ---- class Item ------------------------------------------------- */ Item::Item(const unsigned int class_id, const unsigned int info_id) { item_class_id = class_id; item_info_id = info_id; item_amount = 0; item_info = Info::find(info_id); } Item::~Item() { item_amount = 0; } void Item::set_amount(const int amount) { item_amount = amount; } } // namespace core