From 4e26cb7abc6fb699f0df9ddf1d50bc3ef2fe01c6 Mon Sep 17 00:00:00 2001 From: ClxS Date: Thu, 3 Mar 2016 18:50:22 +0000 Subject: Resolved static analysis issues Standardised event handlers so there's less hassle with future changes --- StardewModdingAPI/Command.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'StardewModdingAPI/Command.cs') 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 CommandFired; /// /// 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); } } } -- cgit