31#ifndef CRAB_ITEMSLOT_H
32#define CRAB_ITEMSLOT_H
34#include "crab/item/Item.h"
35#include "crab/ui/StateButton.h"
72 _category = SLOT_STORAGE;
78 void init(
const ItemSlot &ref,
const int &xOffset = 0,
const int &yOffset = 0);
79 void load(rapidxml::xml_node<char> *node);
83 pyrodactyl::ui::ButtonAction handleEvents(
const Common::Event &event,
const int &xOffset = 0,
const int &yOffset = 0);
86 return target._noType || _item._type == target._itemType;
94 void saveState(rapidxml::xml_document<> &doc, rapidxml::xml_node<char> *root);
95 void loadState(rapidxml::xml_node<char> *node);
Definition: ItemSlot.h:46