remove ThrowUpdateAction
This commit is contained in:
parent
5696086022
commit
b6d66fdc61
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in New Issue