Add Recipemanager that loads recipes from YAML

This commit is contained in:
JonShard
2026-07-17 13:54:14 +02:00
parent 840908e9ff
commit 4d06e72bc1
133 changed files with 9121 additions and 175 deletions
@@ -0,0 +1,18 @@
class_name MyStringClass extends Object
@export var value: String
func _init(p_value := "") -> void:
value = p_value
static func deserialize(data: Variant):
if typeof(data) != TYPE_STRING:
return YAMLResult.error("Deserializing MyStringClass expects String, received %s" % [type_string(typeof(data))])
return MyStringClass.new(data)
func serialize() -> String:
return value
func _to_string() -> String:
return "MyStringClass(%s)" % value