|
@@ -44,8 +44,8 @@ protected:
|
|
Framework::Vec3<float> location;
|
|
Framework::Vec3<float> location;
|
|
void addSlot( ItemSlot* slot );
|
|
void addSlot( ItemSlot* slot );
|
|
void localTransaction( Framework::Array< ItemSlot* >* zSourceSlots, Framework::Array< ItemSlot* >* zTargetSlots, ItemFilter* zFilter, int count );
|
|
void localTransaction( Framework::Array< ItemSlot* >* zSourceSlots, Framework::Array< ItemSlot* >* zTargetSlots, ItemFilter* zFilter, int count );
|
|
- virtual bool allowPullStack( ItemSlot* zSlot, Direction dir );
|
|
|
|
- virtual bool allowPushStack( ItemSlot* zSlot, Direction dir, const Item* zItem, int& count );
|
|
|
|
|
|
+ virtual bool allowPullStack( ItemSlot* zSlot, Direction dir ) const;
|
|
|
|
+ virtual bool allowPushStack( ItemSlot* zSlot, Direction dir, const Item* zItem, int& count ) const;
|
|
virtual void afterPullStack( ItemSlot* zSlot, Direction dir, const Item* zItem, int count );
|
|
virtual void afterPullStack( ItemSlot* zSlot, Direction dir, const Item* zItem, int count );
|
|
virtual void afterPushStack( ItemSlot* zSlot, Direction dir, const Item* zItem, int count );
|
|
virtual void afterPushStack( ItemSlot* zSlot, Direction dir, const Item* zItem, int count );
|
|
virtual void loadInventory( Framework::StreamReader* zReader );
|
|
virtual void loadInventory( Framework::StreamReader* zReader );
|
|
@@ -57,6 +57,7 @@ public:
|
|
virtual ~Inventory();
|
|
virtual ~Inventory();
|
|
InventoryInteraction interactWith( Inventory* zInventory, Direction dir );
|
|
InventoryInteraction interactWith( Inventory* zInventory, Direction dir );
|
|
void unsaveAddItem( ItemStack* zStack, Direction dir );
|
|
void unsaveAddItem( ItemStack* zStack, Direction dir );
|
|
|
|
+ int numberOfAddableItems( const ItemStack* zStack, Direction dir ) const;
|
|
|
|
|
|
friend InventoryInteraction;
|
|
friend InventoryInteraction;
|
|
};
|
|
};
|