ItemSlot.h 629 B

12345678910111213141516171819202122232425
  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. public:
  15. ItemSlot( int maxSize, int pullPriority, int pushPriority, int allowedPullSide, int allowedPushSides, bool allowHigherStackSize );
  16. ~ItemSlot();
  17. void setItems( ItemStack* item );
  18. int getPullPriority() const;
  19. int getPushPriority() const;
  20. ItemStack* zStack() const;
  21. };