added getItemLimit to ItemStorage

This commit is contained in:
Djeeberjr 2024-08-11 22:05:52 +02:00
parent bf80b391df
commit a941f3bbe2

View File

@ -20,4 +20,5 @@ extern class ItemStorage {
public function getItemDetail(slot:Int):DetailedItemInfo; // Get detailed information about an item. public function getItemDetail(slot:Int):DetailedItemInfo; // Get detailed information about an item.
public function pushItems(toName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Push items from one inventory to another connected one. public function pushItems(toName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Push items from one inventory to another connected one.
public function pullItems(fromName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Pull items from a connected inventory into this one. public function pullItems(fromName:String, fromSlot:Int, ?limit:Int, ?toSlot:Int):Int; // Pull items from a connected inventory into this one.
public function getItemLimit(slot: Int):Int; // Get the maximum number of items which can be stored in this slot.
} }