Recipe prep
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
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 +0,0 @@
|
||||
uid://nsqcafdni4vc
|
8
scripts/Cooking/Recipe.gd
Normal file
8
scripts/Cooking/Recipe.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
@tool
|
||||
class_name Recipe extends Node
|
||||
|
||||
@export var recipeName:String = ""
|
||||
@export var ingredients:Array[RecipeIngredient] = []
|
||||
|
||||
func test():
|
||||
print("test")
|
1
scripts/Cooking/Recipe.gd.uid
Normal file
1
scripts/Cooking/Recipe.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dipvg4uwjv6p2
|
@@ -1,8 +0,0 @@
|
||||
class_name CookingRecipe
|
||||
const ItemStack = preload("res://scripts/Item/ItemStack.gd")
|
||||
|
||||
func _init() -> void:
|
||||
pass
|
||||
|
||||
func getIngredients() -> Array[ItemStack]:
|
||||
return []
|
@@ -1 +0,0 @@
|
||||
uid://bqnancnrbmk5n
|
@@ -1,9 +0,0 @@
|
||||
class_name VerticalSlice extends "res://scripts/Cooking/Recipe/CookingRecipe.gd"
|
||||
|
||||
func _init() -> void:
|
||||
super._init();
|
||||
|
||||
func getIngredients() -> Array[ItemStack]:
|
||||
return [
|
||||
ItemStack.new(ITEM.ITEM_POTION, 1)
|
||||
];
|
@@ -1 +0,0 @@
|
||||
uid://c2x1lbdtbtd00
|
4
scripts/Cooking/RecipeIngredient.gd
Normal file
4
scripts/Cooking/RecipeIngredient.gd
Normal file
@@ -0,0 +1,4 @@
|
||||
class_name RecipeIngredient extends Resource
|
||||
|
||||
@export var thing:int = 0
|
||||
@export var count:int = 1
|
1
scripts/Cooking/RecipeIngredient.gd.uid
Normal file
1
scripts/Cooking/RecipeIngredient.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cy01crjsvohfc
|
@@ -6,4 +6,4 @@ var battle:Battle = null;
|
||||
|
||||
func startBattle(battle:Battle) -> void:
|
||||
print("start battle");
|
||||
self.battle = battle;
|
||||
self.battle = battle;
|
||||
|
@@ -1,5 +1 @@
|
||||
extends Node
|
||||
|
||||
const CookingGame = preload("res://scripts/Cooking/CookingGame.gd");
|
||||
|
||||
var game:CookingGame = null;
|
||||
extends Node
|
1
scripts/Singleton/Recipe.gd
Normal file
1
scripts/Singleton/Recipe.gd
Normal file
@@ -0,0 +1 @@
|
||||
class_name RecipeSystem extends Node
|
1
scripts/Singleton/Recipe.gd.uid
Normal file
1
scripts/Singleton/Recipe.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://j87s6jrx8unn
|
Reference in New Issue
Block a user