Replace generic Resource usage with type-safe resources

This commit is contained in:
2026-03-21 10:28:43 +01:00
parent c55b59fcad
commit 52c23b194e
11 changed files with 85 additions and 100 deletions

View File

@@ -13,14 +13,14 @@ class BuffRow extends RefCounted:
@export var _generator: CurrencyGenerator
@onready var _buy_button: Button = $VBoxContainer/HBoxContainerGenerators/BuyOneButton
@onready var _buy_max_button: Button = $VBoxContainer/HBoxContainerGenerators/BuyMaxButton
@onready var _name_label: Label = $VBoxContainer/Label
@onready var _owned_value: Label = $VBoxContainer/GeneratorStatsGrid/OwnedValue
@onready var _next_cost_value: Label = $VBoxContainer/GeneratorStatsGrid/NextCostValue
@onready var _production_value: Label = $VBoxContainer/GeneratorStatsGrid/ProductionValue
@onready var _buffs_section: VBoxContainer = $VBoxContainer/BuffsSection
@onready var _buffs_list: VBoxContainer = $VBoxContainer/BuffsSection/BuffsList
@onready var _buy_button: Button = $PanelContainer/VBoxContainer/HBoxContainerGenerators/BuyOneButton
@onready var _buy_max_button: Button = $PanelContainer/VBoxContainer/HBoxContainerGenerators/BuyMaxButton
@onready var _name_label: Label = $PanelContainer/VBoxContainer/Label
@onready var _owned_value: Label = $PanelContainer/VBoxContainer/GeneratorStatsGrid/OwnedValue
@onready var _next_cost_value: Label = $PanelContainer/VBoxContainer/GeneratorStatsGrid/NextCostValue
@onready var _production_value: Label = $PanelContainer/VBoxContainer/GeneratorStatsGrid/ProductionValue
@onready var _buffs_section: VBoxContainer = $PanelContainer/VBoxContainer/BuffsSection
@onready var _buffs_list: VBoxContainer = $PanelContainer/VBoxContainer/BuffsSection/BuffsList
var _buff_rows: Array[BuffRow] = []
var _generator_id: StringName = &""