Example #1
0
        /// <summary>
        /// Adds a momento to the internal stack
        /// </summary>
        public static void SaveState()
        {
            Momento m = new Momento();

            m.Capture();
            States.Push(m);
        }
Example #2
0
        /// <summary>
        /// Loads the state from a file.
        /// </summary>
        public static void Load()
        {
            States.Clear();
            Momento m = new Momento();

            m.Load();
            States.Push(m);
        }