remove ThrowUpdateAction

This commit is contained in:
beo3000 2025-12-07 14:10:35 +01:00
parent 5696086022
commit b6d66fdc61
4 changed files with 64 additions and 1423 deletions

View File

@ -41,7 +41,7 @@ namespace KoogleApp.Store.Game.ThrowPanel
public record ThrowAction(bool LeftSink, bool RightSink, ParticipantsState ParticipantsState);
public record ThrowUpdateAction(ThrowPanelState State);
//public record ThrowUpdateAction(ThrowPanelState State);
public record UpdateStateAfterUndoRedo(ThrowPanelState ThrowPanelState, ParticipantsState ParticipantsState, IGameModel GameModel);

View File

@ -165,7 +165,6 @@ namespace KoogleApp.Store.Game.ThrowPanel
// perform throw - we will get the new state after resetting all pins for the next throw.
// For the calculation of the game-progress in HandleThrow nextState if normally not useful
//var nextState = throwPanelState.Value.CalculateNextPanelState();
var nextState = beforeStates.Status.ThrowPanelState.CalculateNextPanelState();
//dispatcher.Dispatch(new ThrowUpdateAction(nextState));

View File

@ -227,11 +227,11 @@ namespace KoogleApp.Store.Game.ThrowPanel
};
}
[ReducerMethod]
public static ThrowPanelState OnThrowUpdateAction(ThrowPanelState state, ThrowUpdateAction action)
{
return action.State;
}
//[ReducerMethod]
//public static ThrowPanelState OnThrowUpdateAction(ThrowPanelState state, ThrowUpdateAction action)
//{
// return action.State;
//}
//[ReducerMethod]
//public static ThrowPanelState OnThrowUpdateAction(ThrowPanelState state, ThrowUpdateAction action)
//{

File diff suppressed because it is too large Load Diff