From 5370d89bb9a50133c141a6a0228773d2b2f61fde Mon Sep 17 00:00:00 2001 From: Lucas Teles Date: Fri, 15 Mar 2024 16:55:11 -0300 Subject: [PATCH] localnet fallback --- .run/SpaceWar.Lobby (9000).run.xml | 2 +- .run/SpaceWar.Lobby (9001).run.xml | 2 +- .run/SpaceWar.Lobby (9002).run.xml | 2 +- .run/SpaceWar.Lobby (local 9100).run.xml | 2 +- samples/LobbyServer/LobbyRepository.cs | 1 + samples/LobbyServer/Models.cs | 9 +- samples/LobbyServer/Program.cs | 2 - .../LobbyServer/appsettings.Development.json | 1 - samples/SpaceWar.Lobby/AppSettings.cs | 54 +++++++++-- samples/SpaceWar.Lobby/Game1.cs | 2 +- samples/SpaceWar.Lobby/Models/Peer.cs | 1 + samples/SpaceWar.Lobby/Program.cs | 42 +------- samples/SpaceWar.Lobby/README.md | 95 ++++++++++++++++--- .../Scenes/BattleSessionScene.cs | 9 +- .../SpaceWar.Lobby/Scenes/ChooseNameScene.cs | 2 +- samples/SpaceWar.Lobby/Scenes/LobbyScene.cs | 19 ++-- .../Services/LobbyHttpClient.cs | 24 ++++- .../SpaceWar.Lobby/Services/LobbyUdpClient.cs | 17 +++- samples/SpaceWar.Lobby/SpaceWar.Lobby.csproj | 3 + samples/SpaceWar.Lobby/appsettings.json | 6 ++ .../scripts/linux/build_server.sh | 2 +- .../scripts/linux/start_2peers.sh | 4 +- .../scripts/linux/start_3peers.sh | 6 +- .../scripts/linux/start_4peers.sh | 8 +- .../scripts/linux/start_5peers.sh | 10 +- .../scripts/linux/start_6peers.sh | 12 +-- .../scripts/linux/start_6remote.sh | 16 ++++ .../scripts/windows/start_2peers.cmd | 4 +- .../scripts/windows/start_3peers.cmd | 6 +- .../scripts/windows/start_4peers.cmd | 8 +- .../scripts/windows/start_5peers.cmd | 10 +- .../scripts/windows/start_6_remote.cmd | 13 +++ .../scripts/windows/start_6peers.cmd | 12 +-- .../scripts/windows/start_server.cmd | 6 +- 34 files changed, 286 insertions(+), 126 deletions(-) create mode 100644 samples/SpaceWar.Lobby/appsettings.json create mode 100644 samples/SpaceWar.Lobby/scripts/linux/start_6remote.sh create mode 100644 samples/SpaceWar.Lobby/scripts/windows/start_6_remote.cmd diff --git a/.run/SpaceWar.Lobby (9000).run.xml b/.run/SpaceWar.Lobby (9000).run.xml index 9a578593..72d57d76 100644 --- a/.run/SpaceWar.Lobby (9000).run.xml +++ b/.run/SpaceWar.Lobby (9000).run.xml @@ -1,7 +1,7 @@