/// <summary> /// Adds a momento to the internal stack /// </summary> public static void SaveState() { Momento m = new Momento(); m.Capture(); States.Push(m); }
/// <summary> /// Loads the state from a file. /// </summary> public static void Load() { States.Clear(); Momento m = new Momento(); m.Load(); States.Push(m); }