summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Command.cs
diff options
context:
space:
mode:
authorZoryn <Zoryn4163@users.noreply.github.com>2016-03-03 13:59:48 -0500
committerZoryn <Zoryn4163@users.noreply.github.com>2016-03-03 13:59:48 -0500
commitd12c5babf6e3cb7d700be4f5eb29f5d34214d5f6 (patch)
treece6daa1b6bf4ff0b475d690f4eacaa299700180c /StardewModdingAPI/Command.cs
parent659825ea783cdf57f7b1150bfd8a8191217b76ef (diff)
parentde0cd2ac5095fb3db924317eb1628ec33fb4ffb7 (diff)
downloadSMAPI-d12c5babf6e3cb7d700be4f5eb29f5d34214d5f6.tar.gz
SMAPI-d12c5babf6e3cb7d700be4f5eb29f5d34214d5f6.tar.bz2
SMAPI-d12c5babf6e3cb7d700be4f5eb29f5d34214d5f6.zip
Merge pull request #17 from ClxS/master
Standardised Event Handlers
Diffstat (limited to 'StardewModdingAPI/Command.cs')
-rw-r--r--StardewModdingAPI/Command.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/StardewModdingAPI/Command.cs b/StardewModdingAPI/Command.cs
index c65e8122..f0162a4d 100644
--- a/StardewModdingAPI/Command.cs
+++ b/StardewModdingAPI/Command.cs
@@ -14,8 +14,7 @@ namespace StardewModdingAPI
public String CommandDesc;
public String[] CommandArgs;
public String[] CalledArgs;
- public delegate void CommandFireHandler(Command cmd);
- public event CommandFireHandler CommandFired;
+ public event EventHandler<EventArgsCommand> CommandFired;
/// <summary>
/// Calls the specified command. (It runs the command)
@@ -105,7 +104,7 @@ namespace StardewModdingAPI
Program.LogError("Command failed to fire because it's fire event is null: " + CommandName);
return;
}
- CommandFired.Invoke(this);
+ CommandFired.Invoke(this, null);
}
}
}