summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/Command.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-10-07 23:07:10 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-10-07 23:07:10 -0400
commit929dccb75a1405737975d76648e015a3e7c00177 (patch)
tree659fe16509327e694555db363caf7f47f326443b /src/StardewModdingAPI/Framework/Command.cs
parent926894f8f52c2a5cf104fcac2f7f34b637f7b531 (diff)
downloadSMAPI-929dccb75a1405737975d76648e015a3e7c00177.tar.gz
SMAPI-929dccb75a1405737975d76648e015a3e7c00177.tar.bz2
SMAPI-929dccb75a1405737975d76648e015a3e7c00177.zip
reorganise repo structure
Diffstat (limited to 'src/StardewModdingAPI/Framework/Command.cs')
-rw-r--r--src/StardewModdingAPI/Framework/Command.cs40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/StardewModdingAPI/Framework/Command.cs b/src/StardewModdingAPI/Framework/Command.cs
deleted file mode 100644
index 943e018d..00000000
--- a/src/StardewModdingAPI/Framework/Command.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-
-namespace StardewModdingAPI.Framework
-{
- /// <summary>A command that can be submitted through the SMAPI console to interact with SMAPI.</summary>
- internal class Command
- {
- /*********
- ** Accessor
- *********/
- /// <summary>The friendly name for the mod that registered the command.</summary>
- public string ModName { get; }
-
- /// <summary>The command name, which the user must type to trigger it.</summary>
- public string Name { get; }
-
- /// <summary>The human-readable documentation shown when the player runs the built-in 'help' command.</summary>
- public string Documentation { get; }
-
- /// <summary>The method to invoke when the command is triggered. This method is passed the command name and arguments submitted by the user.</summary>
- public Action<string, string[]> Callback { get; }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="modName">The friendly name for the mod that registered the command.</param>
- /// <param name="name">The command name, which the user must type to trigger it.</param>
- /// <param name="documentation">The human-readable documentation shown when the player runs the built-in 'help' command.</param>
- /// <param name="callback">The method to invoke when the command is triggered. This method is passed the command name and arguments submitted by the user.</param>
- public Command(string modName, string name, string documentation, Action<string, string[]> callback)
- {
- this.ModName = modName;
- this.Name = name;
- this.Documentation = documentation;
- this.Callback = callback;
- }
- }
-}