TinyAdventure/model/item_resource.gd

11 lines
292 B
GDScript
Raw Permalink Normal View History

class_name ItemResource
2024-07-09 22:33:38 +02:00
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