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:
Steven Wroblewski
2026-05-09 01:01:50 +02:00
parent b97b110876
commit 4e4743f14f
3 changed files with 65 additions and 41 deletions
+4 -2
View File
@@ -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