/// <summary> /// Attempts to load a character with the given handle /// </summary> /// <param name="a">This session's <see cref="Assistant"/> object.</param> /// <param name="handle">The handle.</param> static void Load(Assistant a, string handle) { Character c = a.LoadCharacter(handle); if (c.Handle != handle) { WriteLine("Sorry! That character is not in the database!"); } else { WriteLine(handle + "loaded successfully!"); } }
/// <summary> /// Walks the user through loading a character from the database /// </summary> /// <param name="a">This session's <see cref="Assistant"/> object.</param> static void Load(Assistant a) { string handle = Utilities.GetString("Enter the handle of the character you want to load: "); Character c = a.LoadCharacter(handle); if (c.Handle != handle) { WriteLine("Sorry! That character is not in the database!"); } else { WriteLine(handle + " loaded successfully!"); } }