Basic inventory, item and storage
This commit is contained in:
parent
b0b659acd4
commit
66a623e568
11 changed files with 155 additions and 1 deletions
11
scripts/inventory/stack.gd
Normal file
11
scripts/inventory/stack.gd
Normal file
|
@ -0,0 +1,11 @@
|
|||
extends RefCounted
|
||||
|
||||
class_name Stack
|
||||
|
||||
func _init(item: Item = null, amount: int = 0) -> void:
|
||||
held_item = item
|
||||
self.amount = amount
|
||||
|
||||
@export_storage var held_item : Item
|
||||
|
||||
@export_storage var amount : int
|
Loading…
Add table
Add a link
Reference in a new issue