using System; using StardewModdingAPI.Framework; namespace StardewModdingAPI.Events { /// Event arguments for an event. public class OneSecondUpdateTickingEventArgs : EventArgs { /********* ** Accessors *********/ /// The number of ticks elapsed since the game started, excluding the upcoming tick. public uint Ticks => SCore.TicksElapsed; /********* ** Public methods *********/ /// Get whether is a multiple of the given . This is mainly useful if you want to run logic intermittently (e.g. e.IsMultipleOf(30) for every half-second). /// The factor to check. public bool IsMultipleOf(uint number) { return this.Ticks % number == 0; } } }