TinyAdventure/model/item.gd

11 lines
284 B
GDScript

class_name Item
extends Resource
@export var name:String
@export var scene:PackedScene
@export var icon:Texture2D
@export var max_stack_size:int = 1
@export var is_tool:bool = false
@export var is_buildable:bool = false
@export_enum("None", "Chop", "Slice") var tool_action: int = 0