// ReSharper disable MemberCanBePrivate.Global // ReSharper disable UnusedAutoPropertyAccessor.Global using System; namespace RGB.NET.Core; /// /// /// Represents the information supplied with an -event. /// public class UpdatingEventArgs : EventArgs { #region Properties & Fields /// /// Gets the elapsed time (in seconds) since the last update. /// public double DeltaTime { get; } /// /// Gets the trigger causing this update. /// public IUpdateTrigger? Trigger { get; } /// /// Gets the custom-data provided by the trigger for this update. /// public ICustomUpdateData CustomData { get; } #endregion #region Constructors /// /// /// Initializes a new instance of the class. /// /// The elapsed time (in seconds) since the last update. /// The trigger causing this update. /// The custom-data provided by the trigger for this update. public UpdatingEventArgs(double deltaTime, IUpdateTrigger? trigger, ICustomUpdateData customData) { this.DeltaTime = deltaTime; this.Trigger = trigger; this.CustomData = customData; } #endregion }