summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-12-16 00:31:31 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-12-16 00:31:31 -0500
commit6a4dc7e7d1dddb54264856102540d205bc6c3509 (patch)
treedb53e648d6ce2f155e19d307bb60abbd14e8ca96 /src/SMAPI/Events
parent69c9ab0ecd184e4706a8e6394b38fa592cb808d0 (diff)
parent4c3ae950c6be0840e98d1328eeca9effca9c3807 (diff)
downloadSMAPI-6a4dc7e7d1dddb54264856102540d205bc6c3509.tar.gz
SMAPI-6a4dc7e7d1dddb54264856102540d205bc6c3509.tar.bz2
SMAPI-6a4dc7e7d1dddb54264856102540d205bc6c3509.zip
Merge branch 'feature/mod-provided-apis' into develop
Diffstat (limited to 'src/SMAPI/Events')
-rw-r--r--src/SMAPI/Events/GameEvents.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/SMAPI/Events/GameEvents.cs b/src/SMAPI/Events/GameEvents.cs
index b477376e..3466470d 100644
--- a/src/SMAPI/Events/GameEvents.cs
+++ b/src/SMAPI/Events/GameEvents.cs
@@ -33,6 +33,9 @@ namespace StardewModdingAPI.Events
/// <summary>Raised every 60th tick (≈once per second).</summary>
public static event EventHandler OneSecondTick;
+ /// <summary>Raised once after the game initialises and all <see cref="IMod.Entry"/> methods have been called.</summary>
+ public static event EventHandler FirstUpdateTick;
+
/*********
** Internal methods
@@ -92,5 +95,12 @@ namespace StardewModdingAPI.Events
{
monitor.SafelyRaisePlainEvent($"{nameof(GameEvents)}.{nameof(GameEvents.OneSecondTick)}", GameEvents.OneSecondTick?.GetInvocationList());
}
+
+ /// <summary>Raise a <see cref="FirstUpdateTick"/> event.</summary>
+ /// <param name="monitor">Encapsulates monitoring and logging.</param>
+ internal static void InvokeFirstUpdateTick(IMonitor monitor)
+ {
+ monitor.SafelyRaisePlainEvent($"{nameof(GameEvents)}.{nameof(GameEvents.FirstUpdateTick)}", GameEvents.FirstUpdateTick?.GetInvocationList());
+ }
}
}