Documentation

This commit is contained in:
Rendo 2025-10-12 16:41:34 +05:00
commit 23b6e5d180
5 changed files with 34 additions and 0 deletions

View file

@ -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