summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/Graphics.cs
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-26 21:50:47 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-26 21:50:47 -0400
commit36fb605a7c5262a04e2752c55ae97093d26c1a73 (patch)
tree3d77521f80fa319ed86de1cdf63bbc6c2ec50103 /StardewModdingAPI/Events/Graphics.cs
parent02fe4b3e33f77a4f983e1b83733cd888606fe4e6 (diff)
downloadSMAPI-36fb605a7c5262a04e2752c55ae97093d26c1a73.tar.gz
SMAPI-36fb605a7c5262a04e2752c55ae97093d26c1a73.tar.bz2
SMAPI-36fb605a7c5262a04e2752c55ae97093d26c1a73.zip
uhhhhhh. async logging. an event i think. something or other. mid-update commit.
Diffstat (limited to 'StardewModdingAPI/Events/Graphics.cs')
-rw-r--r--StardewModdingAPI/Events/Graphics.cs8
1 files changed, 7 insertions, 1 deletions
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);