BalloonsPop.Core.Commands.RestartCommand.Execute C# (CSharp) 메소드

Execute() 공개 메소드

Executes RestartCommand
public Execute ( IContext context ) : void
context IContext
리턴 void
        public void Execute(IContext context)
        {
            context.LogicProvider.RandomizeBalloonField(context.Game.Field);
            context.Game.ResetUserMoves();

            if (context.Memento != null)
            {
                while (context.Memento.HasStates)
                {
                    context.Memento.GetState();
                }
            }
        }
RestartCommand