9 lines
161 B
GDScript
9 lines
161 B
GDScript
class_name ItemStack
|
|
|
|
var item:Item.ItemType;
|
|
var quantity:int;
|
|
|
|
func _init(item:Item.ItemType, quantity:int = 1):
|
|
self.item = item;
|
|
self.quantity = quantity;
|