mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 23:07:43 +01:00
Add mentor states
This commit is contained in:
parent
c2fc04c3a8
commit
153870a053
2 changed files with 43 additions and 0 deletions
|
|
@ -151,6 +151,21 @@ internal unsafe class PlayerState : IServiceType, IPlayerState
|
|||
/// <inheritdoc/>
|
||||
public MentorVersion MentorVersion => this.IsLoaded ? (MentorVersion)CSPlayerState.Instance()->MentorVersion : default;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsMentor => this.IsLoaded && CSPlayerState.Instance()->IsMentor();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsBattleMentor => this.IsLoaded && CSPlayerState.Instance()->IsBattleMentor();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsTradeMentor => this.IsLoaded && CSPlayerState.Instance()->IsTradeMentor();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsNovice => this.IsLoaded && CSPlayerState.Instance()->IsNovice();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool IsReturner => this.IsLoaded && CSPlayerState.Instance()->IsReturner();
|
||||
|
||||
/// <inheritdoc/>
|
||||
public int GetAttribute(PlayerAttribute attribute) => this.IsLoaded ? CSPlayerState.Instance()->Attributes[(int)attribute] : default;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue