From 59dd604cf2905adf5fce7e9bb7b97886891aae81 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 27 Oct 2017 03:18:48 -0400 Subject: rename TrainerMod to Console Commands to clarify purpose --- .../Commands/World/SetMineLevelCommand.cs | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 src/TrainerMod/Framework/Commands/World/SetMineLevelCommand.cs (limited to 'src/TrainerMod/Framework/Commands/World/SetMineLevelCommand.cs') diff --git a/src/TrainerMod/Framework/Commands/World/SetMineLevelCommand.cs b/src/TrainerMod/Framework/Commands/World/SetMineLevelCommand.cs deleted file mode 100644 index 225ec091..00000000 --- a/src/TrainerMod/Framework/Commands/World/SetMineLevelCommand.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using StardewModdingAPI; -using StardewValley; - -namespace TrainerMod.Framework.Commands.World -{ - /// A command which moves the player to the given mine level. - internal class SetMineLevelCommand : TrainerCommand - { - /********* - ** Public methods - *********/ - /// Construct an instance. - public SetMineLevelCommand() - : base("world_setminelevel", "Sets the mine level?\n\nUsage: world_setminelevel \n- value: The target level (a number starting at 1).") { } - - /// 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) - { - // parse arguments - if (!args.TryGetInt(0, "mine level", out int level, min: 1)) - return; - - // handle - level = Math.Max(1, level); - monitor.Log($"OK, warping you to mine level {level}.", LogLevel.Info); - Game1.enterMine(true, level, ""); - } - } -} -- cgit