From ffd9d7d8071040421cd246b78784f1b08e3747e3 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Sat, 18 Nov 2023 23:24:10 +1100 Subject: [PATCH] Add more options for stage selection. Resolves #13 --- TableturfBattleClient/index.html | 62 +++- TableturfBattleClient/src/CheckButtonGroup.ts | 6 +- TableturfBattleClient/src/Pages/GamePage.ts | 2 +- TableturfBattleClient/src/Pages/LobbyPage.ts | 108 ++++++- .../src/Pages/PreGamePage.ts | 59 ++++ TableturfBattleClient/src/PlayerData.ts | 16 + .../src/StageSelectionRule.ts | 13 + TableturfBattleClient/src/app.ts | 10 +- TableturfBattleClient/tableturf.css | 12 +- TableturfBattleServer/DataStructures.cs | 6 +- TableturfBattleServer/Error.cs | 3 +- TableturfBattleServer/Game.cs | 283 +++++++++++++++--- TableturfBattleServer/JsonUtils.cs | 1 + TableturfBattleServer/Player.cs | 10 +- TableturfBattleServer/Program.cs | 93 +++--- TableturfBattleServer/StageSelectionPrompt.cs | 20 ++ TableturfBattleServer/StageSelectionRules.cs | 29 ++ .../TableturfBattleServer.csproj | 4 +- 18 files changed, 635 insertions(+), 102 deletions(-) create mode 100644 TableturfBattleClient/src/StageSelectionRule.ts create mode 100644 TableturfBattleServer/StageSelectionPrompt.cs create mode 100644 TableturfBattleServer/StageSelectionRules.cs diff --git a/TableturfBattleClient/index.html b/TableturfBattleClient/index.html index 3ea2e5b..3c801db 100644 --- a/TableturfBattleClient/index.html +++ b/TableturfBattleClient/index.html @@ -85,12 +85,14 @@