12 lines
382 B
GDScript3
12 lines
382 B
GDScript3
|
|
class_name ItemData extends Resource
|
||
|
|
|
||
|
|
enum ItemType { NORMAL, BACKPACK, POCKET }
|
||
|
|
@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!
|