Working meta scenes
This commit is contained in:
@@ -2,5 +2,6 @@ class_name CookingGame
|
||||
const VerticalSlice = preload("res://scripts/Cooking/Recipe/VerticalSlice.gd");
|
||||
|
||||
var recipe:CookingRecipe = null;
|
||||
|
||||
func _init(recipe:CookingRecipe) -> void:
|
||||
self.recipe = recipe;
|
||||
|
@@ -1,4 +1,8 @@
|
||||
class_name CookingRecipe
|
||||
const ItemStack = preload("res://scripts/Item/ItemStack.gd")
|
||||
|
||||
func _init() -> void:
|
||||
pass
|
||||
pass
|
||||
|
||||
func getIngredients() -> Array[ItemStack]:
|
||||
return []
|
||||
|
@@ -1,4 +1,10 @@
|
||||
class_name VerticalSlice extends "res://scripts/Cooking/Recipe/CookingRecipe.gd"
|
||||
const ItemSystem = preload("res://scripts/System/ItemSystem.gd")
|
||||
|
||||
func _init() -> void:
|
||||
super._init();
|
||||
super._init();
|
||||
|
||||
func getIngredients() -> Array[ItemStack]:
|
||||
return [
|
||||
ItemStack.new(ItemSystem.ITEM_POTION, 1)
|
||||
];
|
||||
|
Reference in New Issue
Block a user