Refactor conversation stuff

This commit is contained in:
2026-01-14 23:20:56 -06:00
parent d916e65990
commit 5af98a69a2
18 changed files with 136 additions and 35 deletions

13
item/ItemResource.gd Normal file
View File

@@ -0,0 +1,13 @@
extends Resource
class_name ItemResource
const Item = preload("res://item/Item.gd")
const ItemStack = preload("res://item/ItemStack.gd")
@export var item:Item.ItemId = Item.ItemId.NULL
@export var quantity:int = 0
func toItemStack() -> ItemStack:
var stack = ItemStack.new()
stack.item = item
stack.quantity = quantity
return stack