private void DoStatChanged(SurvivalStat stat) { var args = new SurvivalStatChangedEventArgs(stat); InvokeStatChangedEvent(this, args); }
/// <summary> /// Invokes the stat changed event with the given parameters /// </summary> /// <param name="caller">The object performing the call</param> /// <param name="args">The <see cref="SurvivalStatChangedEventArgs" /> instance containing the event data.</param> public void InvokeStatChangedEvent(SurvivalModuleBase caller, SurvivalStatChangedEventArgs args) { StatChanged?.Invoke(caller, args); }