From 36fb605a7c5262a04e2752c55ae97093d26c1a73 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sat, 26 Mar 2016 21:50:47 -0400 Subject: uhhhhhh. async logging. an event i think. something or other. mid-update commit. --- StardewModdingAPI/Events/Graphics.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'StardewModdingAPI/Events/Graphics.cs') diff --git a/StardewModdingAPI/Events/Graphics.cs b/StardewModdingAPI/Events/Graphics.cs index 87ee845b..db963924 100644 --- a/StardewModdingAPI/Events/Graphics.cs +++ b/StardewModdingAPI/Events/Graphics.cs @@ -6,6 +6,7 @@ namespace StardewModdingAPI.Events { public static event EventHandler Resize = delegate { }; public static event EventHandler DrawTick = delegate { }; + public static event EventHandler DrawInRenderTargetTick = delegate { }; public static void InvokeDrawTick() { @@ -15,10 +16,15 @@ namespace StardewModdingAPI.Events } catch (Exception ex) { - Log.Error("An exception occured in XNA DrawTick: " + ex); + Log.Error("An exception occured in a Mod's DrawTick: " + ex); } } + public static void InvokeDrawInRenderTargetTick() + { + DrawInRenderTargetTick.Invoke(null, EventArgs.Empty); + } + public static void InvokeResize(object sender, EventArgs e) { Resize.Invoke(sender, e); -- cgit