diff --git a/src/Koogle.Application/Interfaces/IGameSetupControl.cs b/src/Koogle.Application/Interfaces/IGameSetupControl.cs
new file mode 100644
index 0000000..623fe80
--- /dev/null
+++ b/src/Koogle.Application/Interfaces/IGameSetupControl.cs
@@ -0,0 +1,14 @@
+using Koogle.Application.Games;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Koogle.Application.Interfaces
+{
+ public interface IGameSetupControl
+ {
+ IGameSetupModel GameSetupModel { get; }
+ }
+}
diff --git a/src/Koogle.Web/Components/Game/GameSetupDialog.razor b/src/Koogle.Web/Components/Game/GameSetupDialog.razor
index f0a7018..f3d15d1 100644
--- a/src/Koogle.Web/Components/Game/GameSetupDialog.razor
+++ b/src/Koogle.Web/Components/Game/GameSetupDialog.razor
@@ -3,6 +3,7 @@
@using Koogle.Application.Games
@using Koogle.Application.Games.Shit
@using Koogle.Application.Games.Training
+@using Koogle.Application.Interfaces
@using Koogle.Domain.Enums
@using Koogle.Domain.Interfaces
@using Koogle.Web.Store.DayState
@@ -23,13 +24,23 @@
OnGameDefinitionChanged="OnGameDefinitionChanged" />
- @* Step 2: Game-specific Setup *@
-
+
+
+
+ @* Step 3: Game-specific Setup *@
+
@if (_selectedDefinition != null)
{
}
else
@@ -40,23 +51,14 @@
}
- @* Step 3: Participant Selection *@
-
-
-
-
@* Step 4: Common Options *@
-
-
+ *@
@* Validation errors *@
@@ -79,7 +81,7 @@
Teilnehmer: @_selectedParticipantIds.Count Spieler
- Modus: @GetThrowModeLabel(_throwMode)
+ Modus: @GetThrowModeLabel()
@@ -107,6 +109,8 @@
@code {
+ private DynamicComponent? dynamicComponentRef;
+
///
/// ID of the day to start the game for.
///
@@ -125,10 +129,10 @@
private IGameDefinition? _selectedDefinition;
private IReadOnlyList _availableParticipants = [];
private IReadOnlyList _selectedParticipantIds = [];
- private object? _gameSpecificSetupOptions;
- private ThrowMode _throwMode = ThrowMode.Reposition;
- private int _throwsPerRound = 3;
- private ParticipantsMode _participantsMode = ParticipantsMode.GameLogic;
+ // private object? _gameSpecificSetupOptions;
+ // private ThrowMode _throwMode = ThrowMode.Reposition;
+ // private int _throwsPerRound = 3;
+ // private ParticipantsMode _participantsMode = ParticipantsMode.GameLogic;
private string? _validationError;
private bool _isStarting;
@@ -147,7 +151,7 @@
private void OnGameDefinitionChanged(IGameDefinition? definition)
{
_selectedDefinition = definition;
- _gameSpecificSetupOptions = null;
+ // _gameSpecificSetupOptions = null;
_validationError = null;
if (definition != null)
@@ -161,13 +165,13 @@
return new Dictionary
{
["OnOptionsChanged"] = EventCallback.Factory.Create