Prepping cooking

This commit is contained in:
2026-01-15 17:28:39 -06:00
parent 098a9d47f9
commit 3b7de160dc
27 changed files with 151 additions and 19 deletions

14
cooking/RecipeBook.gd Normal file
View File

@@ -0,0 +1,14 @@
class_name RecipeBook
static var RECIPES_KNOWN:Array[Recipe.Id] = []
static func learnRecipe(recipeId:Recipe.Id) -> void:
if recipeId in RECIPES_KNOWN:
return
RECIPES_KNOWN.append(recipeId)
static func isRecipeKnown(recipeId:Recipe.Id) -> bool:
return recipeId in RECIPES_KNOWN
static func getKnownRecipes() -> Array[Recipe.Id]:
return RECIPES_KNOWN.duplicate()