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

View File

@@ -1 +1,27 @@
class_name CookingSingleton extends Node
class_name CookingSingleton extends Node
# Cooking State
var cutscene:Cutscene = null
var active:bool = false
# Signals
signal cookingStarted
func start(params:Dictionary) -> void:
assert(params.has('recipe'))
assert(!active)
if params['cutscene'] != null:
cutscene = params['cutscene']
else:
cutscene = Cutscene.new()
# TODO: Add cooking things here
# Emit signals
active = true
cookingStarted.emit()
# Start the cutscene.
if !cutscene.running:
cutscene.start()