Add spawning kitchen after hosting

This commit is contained in:
JonShard
2026-07-29 13:59:33 +02:00
parent 6933e17f3a
commit 68b6d4d1dc
20 changed files with 82 additions and 37 deletions
+16
View File
@@ -0,0 +1,16 @@
extends MultiplayerSpawner
@export var kitchen_scene: PackedScene
func _ready() -> void:
if not kitchen_scene:
push_error("StationSpawner missing kitchen_scene")
if NetworkManager.is_server():
# Later we will do procedural generation here.
# For now we just load a scene.
var kitchen = kitchen_scene.instantiate()
get_node(spawn_path).add_child(kitchen)
+1
View File
@@ -0,0 +1 @@
uid://dw3bfum87xs55