summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/OneSecondUpdateTickingEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Events/OneSecondUpdateTickingEventArgs.cs')
-rw-r--r--src/SMAPI/Events/OneSecondUpdateTickingEventArgs.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/SMAPI/Events/OneSecondUpdateTickingEventArgs.cs b/src/SMAPI/Events/OneSecondUpdateTickingEventArgs.cs
index cdd9f4cc..e9bb46c6 100644
--- a/src/SMAPI/Events/OneSecondUpdateTickingEventArgs.cs
+++ b/src/SMAPI/Events/OneSecondUpdateTickingEventArgs.cs
@@ -1,4 +1,5 @@
using System;
+using StardewValley;
namespace StardewModdingAPI.Events
{
@@ -9,19 +10,12 @@ namespace StardewModdingAPI.Events
** Accessors
*********/
/// <summary>The number of ticks elapsed since the game started, including the current tick.</summary>
- public uint Ticks { get; }
+ public uint Ticks => (uint)Game1.ticks;
/*********
** Public methods
*********/
- /// <summary>Construct an instance.</summary>
- /// <param name="ticks">The number of ticks elapsed since the game started, including the current tick.</param>
- internal OneSecondUpdateTickingEventArgs(uint ticks)
- {
- this.Ticks = ticks;
- }
-
/// <summary>Get whether <see cref="Ticks"/> is a multiple of the given <paramref name="number"/>. This is mainly useful if you want to run logic intermittently (e.g. <code>e.IsMultipleOf(30)</code> for every half-second).</summary>
/// <param name="number">The factor to check.</param>
public bool IsMultipleOf(uint number)