Files
Dawn-Godot/cooking/Cooking.gd
2026-01-15 17:28:39 -06:00

27 lines
503 B
GDScript

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()