mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 00:19:18 +01:00
refactor: OnLogin, OnLogout => Login, Logout
This commit is contained in:
parent
3ba090e487
commit
9214e17577
3 changed files with 10 additions and 10 deletions
|
|
@ -90,12 +90,12 @@ namespace Dalamud.Game.ClientState
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event that fires when a character is logging in.
|
/// Event that fires when a character is logging in.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event EventHandler OnLogin;
|
public event EventHandler Login;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event that fires when a character is logging out.
|
/// Event that fires when a character is logging out.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event EventHandler OnLogout;
|
public event EventHandler Logout;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event that gets fired when a duty is ready.
|
/// Event that gets fired when a duty is ready.
|
||||||
|
|
@ -216,7 +216,7 @@ namespace Dalamud.Game.ClientState
|
||||||
Log.Debug("Is login");
|
Log.Debug("Is login");
|
||||||
this.lastConditionNone = false;
|
this.lastConditionNone = false;
|
||||||
this.IsLoggedIn = true;
|
this.IsLoggedIn = true;
|
||||||
this.OnLogin?.Invoke(this, null);
|
this.Login?.Invoke(this, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.Condition.Any() && this.lastConditionNone == false)
|
if (!this.Condition.Any() && this.lastConditionNone == false)
|
||||||
|
|
@ -224,7 +224,7 @@ namespace Dalamud.Game.ClientState
|
||||||
Log.Debug("Is logout");
|
Log.Debug("Is logout");
|
||||||
this.lastConditionNone = true;
|
this.lastConditionNone = true;
|
||||||
this.IsLoggedIn = false;
|
this.IsLoggedIn = false;
|
||||||
this.OnLogout?.Invoke(this, null);
|
this.Logout?.Invoke(this, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,13 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
||||||
|
|
||||||
if (!this.subscribed)
|
if (!this.subscribed)
|
||||||
{
|
{
|
||||||
dalamud.ClientState.OnLogin += this.ClientStateOnOnLogin;
|
dalamud.ClientState.Login += this.ClientStateOnOnLogin;
|
||||||
this.subscribed = true;
|
this.subscribed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hasPassed)
|
if (this.hasPassed)
|
||||||
{
|
{
|
||||||
dalamud.ClientState.OnLogin -= this.ClientStateOnOnLogin;
|
dalamud.ClientState.Login -= this.ClientStateOnOnLogin;
|
||||||
this.subscribed = false;
|
this.subscribed = false;
|
||||||
return SelfTestStepResult.Pass;
|
return SelfTestStepResult.Pass;
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
||||||
{
|
{
|
||||||
if (this.subscribed)
|
if (this.subscribed)
|
||||||
{
|
{
|
||||||
dalamud.ClientState.OnLogin -= this.ClientStateOnOnLogin;
|
dalamud.ClientState.Login -= this.ClientStateOnOnLogin;
|
||||||
this.subscribed = false;
|
this.subscribed = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,13 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
||||||
|
|
||||||
if (!this.subscribed)
|
if (!this.subscribed)
|
||||||
{
|
{
|
||||||
dalamud.ClientState.OnLogout += this.ClientStateOnOnLogout;
|
dalamud.ClientState.Logout += this.ClientStateOnOnLogout;
|
||||||
this.subscribed = true;
|
this.subscribed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hasPassed)
|
if (this.hasPassed)
|
||||||
{
|
{
|
||||||
dalamud.ClientState.OnLogout -= this.ClientStateOnOnLogout;
|
dalamud.ClientState.Logout -= this.ClientStateOnOnLogout;
|
||||||
this.subscribed = false;
|
this.subscribed = false;
|
||||||
return SelfTestStepResult.Pass;
|
return SelfTestStepResult.Pass;
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
||||||
{
|
{
|
||||||
if (this.subscribed)
|
if (this.subscribed)
|
||||||
{
|
{
|
||||||
dalamud.ClientState.OnLogout -= this.ClientStateOnOnLogout;
|
dalamud.ClientState.Logout -= this.ClientStateOnOnLogout;
|
||||||
this.subscribed = false;
|
this.subscribed = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue