diff options
Diffstat (limited to 'client/scripts/game.gd')
-rw-r--r-- | client/scripts/game.gd | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/client/scripts/game.gd b/client/scripts/game.gd index 44875056..5d127e78 100644 --- a/client/scripts/game.gd +++ b/client/scripts/game.gd @@ -38,7 +38,7 @@ func _ready(): players.erase(id) player.queue_free() ) - + Multiplayer.connect("set_tile_item", func(tile: Vector2i, item: int): var t: Floor = map.tile_by_pos[str(tile)] var i = Item.new(item, t.item_base) @@ -77,6 +77,16 @@ func _ready(): p.put_item(t) ) + Multiplayer.connect("set_progress", func(tile: Vector2i, progress: float, warn: bool): + var t: FullTile = map.tile_by_pos[str(tile)] + t.progress(progress, warn) + ) + + Multiplayer.connect("set_finished", func(tile: Vector2i, warn: bool): + var t: FullTile = map.tile_by_pos[str(tile)] + t.finish(warn) + ) + Multiplayer.send_join("Blub", 1) |