11 lines
390 B
GDScript
11 lines
390 B
GDScript
class_name ItemData extends Resource
|
|
|
|
enum ItemType { NORMAL, BACKPACK, POCKET, USABLE }
|
|
@export var item_type: ItemType = ItemType.NORMAL
|
|
@export var provided_slots: int
|
|
|
|
@export var name: String = ""
|
|
@export var weight: float = 10.0
|
|
@export var scene_path: String = ""
|
|
@export var ui_icon: Texture2D
|
|
@export var hand_mesh: Mesh # We need to save the mesh to show it in the player's hand!
|