feat: pushing dragons to server

This commit is contained in:
Gerard Gascón 2025-04-12 00:31:52 +02:00
parent b080ab7bf4
commit f9f38ba95c
3 changed files with 13 additions and 6 deletions

View file

@ -92,6 +92,7 @@ func move_window_to_bottom_right():
func add_dragon(properties: DragonProperties):
var id: int = _library.add_dragon(properties)
dragon_sharing.send(properties)
for spot in dragon_spots:
if not _filled_spots.has(spot):
_instantiate_dragon_ingame(spot.position, properties)