ItemSlot.h 674 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "ItemStack.h"
  3. #include "Area.h"
  4. class ItemSlot : public virtual Framework::ReferenceCounter
  5. {
  6. private:
  7. ItemStack* items;
  8. int maxSize;
  9. Directions allowedPullSide;
  10. Directions allowedPushSides;
  11. int pullPriority;
  12. int pushPriority;
  13. bool allowHigherStackSize;
  14. Framework::Text name;
  15. public:
  16. ItemSlot(Framework::Text name, int maxSize, int pullPriority, int pushPriority, int allowedPullSide, int allowedPushSides, bool allowHigherStackSize);
  17. ~ItemSlot();
  18. void setItems(ItemStack* item);
  19. int getPullPriority() const;
  20. int getPushPriority() const;
  21. ItemStack* zStack() const;
  22. const Framework::Text& getName() const;
  23. };