#if SMAPI_1_x
using StardewModdingAPI;
using StardewValley;
using StardewValley.Menus;
namespace TrainerMod.Framework.Commands.Saves
{
/// A command which shows the load screen.
internal class LoadCommand : TrainerCommand
{
/*********
** Public methods
*********/
/// Construct an instance.
public LoadCommand()
: base("load", "Shows the load screen.") { }
/// Handle the command.
/// Writes messages to the console and log file.
/// The command name.
/// The command arguments.
public override void Handle(IMonitor monitor, string command, ArgumentParser args)
{
monitor.Log("Triggering load menu...", LogLevel.Info);
Game1.hasLoadedGame = false;
Game1.activeClickableMenu = new LoadGameMenu();
}
}
}
#endif