Clear() public method

public Clear ( ) : void
return void
Esempio n. 1
0
        public void New()
        {
            if (Type == Types.None)
            {
                throw new InvalidOperationException("You have to setup the GameSession type");
            }

            id++;
            if (Status != SessionStatus.NotPlaying)
            {
                End();
            }

            history.Clear();
            game_time = TimeSpan.Zero;
            timer.SynchronizingObject = SynchronizingObject;
            EnableTimer = true;
        }