Replace generic Resource usage with type-safe resources
This commit is contained in:
@@ -56,7 +56,7 @@ func _ready() -> void:
|
||||
#func spend_gems(cost: BigNumber) -> bool:
|
||||
#return spend_currency_by_id(GEMS_CURRENCY_ID, cost)
|
||||
|
||||
func get_known_currencies() -> Array[Resource]:
|
||||
func get_known_currencies() -> Array[Currency]:
|
||||
return CurrencyDatabase.get_known_currencies()
|
||||
|
||||
func get_currency_id(currency: Resource) -> StringName:
|
||||
|
||||
Reference in New Issue
Block a user