diff options
author | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-03 13:59:48 -0500 |
---|---|---|
committer | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-03 13:59:48 -0500 |
commit | d12c5babf6e3cb7d700be4f5eb29f5d34214d5f6 (patch) | |
tree | ce6daa1b6bf4ff0b475d690f4eacaa299700180c /StardewModdingAPI/Command.cs | |
parent | 659825ea783cdf57f7b1150bfd8a8191217b76ef (diff) | |
parent | de0cd2ac5095fb3db924317eb1628ec33fb4ffb7 (diff) | |
download | SMAPI-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.cs | 5 |
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); } } } |