Recipe prep
This commit is contained in:
@@ -28,6 +28,7 @@ UI="*res://scenes/Singletons/UI.tscn"
|
||||
VN="*res://scripts/Singleton/VN.gd"
|
||||
LOAD="*res://scenes/Singletons/Load.tscn"
|
||||
EVENT="*res://scripts/Singleton/Event.gd"
|
||||
RECIPE="*res://scenes/Singletons/Recipe.tscn"
|
||||
|
||||
[display]
|
||||
|
||||
|
13
scenes/Singletons/Recipe.tscn
Normal file
13
scenes/Singletons/Recipe.tscn
Normal file
@@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://1l0tymk8cfxu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://j87s6jrx8unn" path="res://scripts/Singleton/Recipe.gd" id="1_o4nv4"]
|
||||
[ext_resource type="Script" uid="uid://dipvg4uwjv6p2" path="res://scripts/Cooking/Recipe.gd" id="2_f5akq"]
|
||||
|
||||
[node name="RecipeSystem" type="Node"]
|
||||
script = ExtResource("1_o4nv4")
|
||||
metadata/_custom_type_script = "uid://j87s6jrx8unn"
|
||||
|
||||
[node name="Ash-Baked Sweet Potato" type="Node" parent="."]
|
||||
script = ExtResource("2_f5akq")
|
||||
recipeName = "Ash-Baked Sweet Potato"
|
||||
metadata/_custom_type_script = "uid://dipvg4uwjv6p2"
|
8
scenes/Singletons/barrel.mtl
Normal file
8
scenes/Singletons/barrel.mtl
Normal file
@@ -0,0 +1,8 @@
|
||||
# Material for Barrel
|
||||
newmtl BarrelTexture
|
||||
Ka 1.000 1.000 1.000
|
||||
Kd 1.000 1.000 1.000
|
||||
Ks 0.000 0.000 0.000
|
||||
d 1.0
|
||||
illum 1
|
||||
map_Kd barrel.png
|
@@ -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
|
@@ -1,5 +1 @@
|
||||
extends Node
|
||||
|
||||
const CookingGame = preload("res://scripts/Cooking/CookingGame.gd");
|
||||
|
||||
var game:CookingGame = null;
|
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