refactor(items): use ItemType enum and offset constants in ChestItemData/RoomChestConfig
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
## ChestItemData — configuration for a single item slot inside a RoomChest.
|
||||
class_name ChestItemData extends Resource
|
||||
|
||||
enum ItemType { HOLDABLE, OUTFIT }
|
||||
|
||||
@export var item_id: String = ""
|
||||
@export var item_type: String = "holdable"
|
||||
@export var outfit_layer: int = 1
|
||||
@export var item_type: ItemType = ItemType.HOLDABLE
|
||||
@export_range(1, 3) var outfit_layer: int = 1
|
||||
@export var spawn_offset: Vector2 = Vector2.ZERO
|
||||
|
||||
Reference in New Issue
Block a user