diff options
Diffstat (limited to 'src/TrainerMod/Framework/Commands/Player/AddFlooringCommand.cs')
-rw-r--r-- | src/TrainerMod/Framework/Commands/Player/AddFlooringCommand.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/TrainerMod/Framework/Commands/Player/AddFlooringCommand.cs b/src/TrainerMod/Framework/Commands/Player/AddFlooringCommand.cs deleted file mode 100644 index 1bc96466..00000000 --- a/src/TrainerMod/Framework/Commands/Player/AddFlooringCommand.cs +++ /dev/null @@ -1,33 +0,0 @@ -using StardewModdingAPI; -using StardewValley; -using StardewValley.Objects; - -namespace TrainerMod.Framework.Commands.Player -{ - /// <summary>A command which adds a floor item to the player inventory.</summary> - internal class AddFlooringCommand : TrainerCommand - { - /********* - ** Public methods - *********/ - /// <summary>Construct an instance.</summary> - public AddFlooringCommand() - : base("player_addflooring", "Gives the player a flooring item.\n\nUsage: player_addflooring <flooring>\n- flooring: the flooring ID (ranges from 0 to 39).") { } - - /// <summary>Handle the command.</summary> - /// <param name="monitor">Writes messages to the console and log file.</param> - /// <param name="command">The command name.</param> - /// <param name="args">The command arguments.</param> - public override void Handle(IMonitor monitor, string command, ArgumentParser args) - { - // read arguments - if (!args.TryGetInt(0, "floor ID", out int floorID, min: 0, max: 39)) - return; - - // handle - Wallpaper wallpaper = new Wallpaper(floorID, isFloor: true); - Game1.player.addItemByMenuIfNecessary(wallpaper); - monitor.Log($"OK, added flooring {floorID} to your inventory.", LogLevel.Info); - } - } -} |