mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
Inherit documentation
This commit is contained in:
parent
b9baf3e5b2
commit
80e86989fb
1 changed files with 16 additions and 51 deletions
|
|
@ -121,90 +121,55 @@ internal unsafe class PartyMember : IPartyMember
|
||||||
this.Address = address;
|
this.Address = address;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the address of this party member in memory.
|
|
||||||
/// </summary>
|
|
||||||
public IntPtr Address { get; }
|
public IntPtr Address { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets a list of buffs or debuffs applied to this party member.
|
|
||||||
/// </summary>
|
|
||||||
public StatusList Statuses => new(&this.Struct->StatusManager);
|
public StatusList Statuses => new(&this.Struct->StatusManager);
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the position of the party member.
|
|
||||||
/// </summary>
|
|
||||||
public Vector3 Position => this.Struct->Position;
|
public Vector3 Position => this.Struct->Position;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the content ID of the party member.
|
|
||||||
/// </summary>
|
|
||||||
public long ContentId => (long)this.Struct->ContentId;
|
public long ContentId => (long)this.Struct->ContentId;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the actor ID of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public uint ObjectId => this.Struct->EntityId;
|
public uint ObjectId => this.Struct->EntityId;
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public uint EntityId => this.Struct->EntityId;
|
public uint EntityId => this.Struct->EntityId;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the actor associated with this buddy.
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// This iterates the actor table, it should be used with care.
|
|
||||||
/// </remarks>
|
|
||||||
public IGameObject? GameObject => Service<ObjectTable>.Get().SearchById(this.EntityId);
|
public IGameObject? GameObject => Service<ObjectTable>.Get().SearchById(this.EntityId);
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the current HP of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public uint CurrentHP => this.Struct->CurrentHP;
|
public uint CurrentHP => this.Struct->CurrentHP;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the maximum HP of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public uint MaxHP => this.Struct->MaxHP;
|
public uint MaxHP => this.Struct->MaxHP;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the current MP of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public ushort CurrentMP => this.Struct->CurrentMP;
|
public ushort CurrentMP => this.Struct->CurrentMP;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the maximum MP of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public ushort MaxMP => this.Struct->MaxMP;
|
public ushort MaxMP => this.Struct->MaxMP;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the territory this party member is located in.
|
|
||||||
/// </summary>
|
|
||||||
public RowRef<Lumina.Excel.Sheets.TerritoryType> Territory => LuminaUtils.CreateRef<Lumina.Excel.Sheets.TerritoryType>(this.Struct->TerritoryType);
|
public RowRef<Lumina.Excel.Sheets.TerritoryType> Territory => LuminaUtils.CreateRef<Lumina.Excel.Sheets.TerritoryType>(this.Struct->TerritoryType);
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the World this party member resides in.
|
|
||||||
/// </summary>
|
|
||||||
public RowRef<Lumina.Excel.Sheets.World> World => LuminaUtils.CreateRef<Lumina.Excel.Sheets.World>(this.Struct->HomeWorld);
|
public RowRef<Lumina.Excel.Sheets.World> World => LuminaUtils.CreateRef<Lumina.Excel.Sheets.World>(this.Struct->HomeWorld);
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the displayname of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public SeString Name => SeString.Parse(this.Struct->Name);
|
public SeString Name => SeString.Parse(this.Struct->Name);
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the sex of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public byte Sex => this.Struct->Sex;
|
public byte Sex => this.Struct->Sex;
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the classjob of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public RowRef<Lumina.Excel.Sheets.ClassJob> ClassJob => LuminaUtils.CreateRef<Lumina.Excel.Sheets.ClassJob>(this.Struct->ClassJob);
|
public RowRef<Lumina.Excel.Sheets.ClassJob> ClassJob => LuminaUtils.CreateRef<Lumina.Excel.Sheets.ClassJob>(this.Struct->ClassJob);
|
||||||
|
|
||||||
/// <summary>
|
/// <inheritdoc/>
|
||||||
/// Gets the level of this party member.
|
|
||||||
/// </summary>
|
|
||||||
public byte Level => this.Struct->Level;
|
public byte Level => this.Struct->Level;
|
||||||
|
|
||||||
private FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember*)this.Address;
|
private FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember* Struct => (FFXIVClientStructs.FFXIV.Client.Game.Group.PartyMember*)this.Address;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue