Documentation
This commit is contained in:
parent
66a623e568
commit
23b6e5d180
5 changed files with 34 additions and 0 deletions
|
@ -1,11 +1,15 @@
|
|||
extends RefCounted
|
||||
|
||||
## Structure of item and amount of it. Basic object that more complex exchange
|
||||
|
||||
class_name Stack
|
||||
|
||||
func _init(item: Item = null, amount: int = 0) -> void:
|
||||
held_item = item
|
||||
self.amount = amount
|
||||
|
||||
## Item in stack
|
||||
@export_storage var held_item : Item
|
||||
|
||||
## Amount of items in stack
|
||||
@export_storage var amount : int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue