mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Change Framework.OnUpdateEvent to Update
This commit is contained in:
parent
1cce78e14d
commit
2b4f4bc9fd
2 changed files with 7 additions and 7 deletions
|
|
@ -49,7 +49,7 @@ namespace Dalamud.Game
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// A delegate type used with the <see cref="OnUpdateEvent"/> event.
|
||||
/// A delegate type used with the <see cref="Update"/> event.
|
||||
/// </summary>
|
||||
/// <param name="framework">The Framework instance.</param>
|
||||
public delegate void OnUpdateDelegate(Framework framework);
|
||||
|
|
@ -75,7 +75,7 @@ namespace Dalamud.Game
|
|||
/// <summary>
|
||||
/// Event that gets fired every time the game framework updates.
|
||||
/// </summary>
|
||||
public event OnUpdateDelegate OnUpdateEvent;
|
||||
public event OnUpdateDelegate Update;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the collection of stats is enabled.
|
||||
|
|
@ -175,10 +175,10 @@ namespace Dalamud.Game
|
|||
{
|
||||
try
|
||||
{
|
||||
if (StatsEnabled && this.OnUpdateEvent != null)
|
||||
if (StatsEnabled && this.Update != null)
|
||||
{
|
||||
// Stat Tracking for Framework Updates
|
||||
var invokeList = this.OnUpdateEvent.GetInvocationList();
|
||||
var invokeList = this.Update.GetInvocationList();
|
||||
var notUpdated = StatsHistory.Keys.ToList();
|
||||
// Individually invoke OnUpdate handlers and time them.
|
||||
foreach (var d in invokeList)
|
||||
|
|
@ -211,7 +211,7 @@ namespace Dalamud.Game
|
|||
}
|
||||
else
|
||||
{
|
||||
this.OnUpdateEvent?.Invoke(this);
|
||||
this.Update?.Invoke(this);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue