Fix IDE0009: Add '.this'

This commit is contained in:
Haselnussbomber 2025-10-24 03:11:28 +02:00
parent 9d9d06755d
commit a32c0f07ea
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
6 changed files with 33 additions and 33 deletions

View file

@ -1,4 +1,4 @@
using FFXIVClientStructs.FFXIV.Client.Game.Gauge; using FFXIVClientStructs.FFXIV.Client.Game.Gauge;
using CanvasFlags = Dalamud.Game.ClientState.JobGauge.Enums.CanvasFlags; using CanvasFlags = Dalamud.Game.ClientState.JobGauge.Enums.CanvasFlags;
using CreatureFlags = Dalamud.Game.ClientState.JobGauge.Enums.CreatureFlags; using CreatureFlags = Dalamud.Game.ClientState.JobGauge.Enums.CreatureFlags;
@ -22,45 +22,45 @@ public unsafe class PCTGauge : JobGaugeBase<PictomancerGauge>
/// <summary> /// <summary>
/// Gets the use of subjective pallete. /// Gets the use of subjective pallete.
/// </summary> /// </summary>
public byte PalleteGauge => Struct->PalleteGauge; public byte PalleteGauge => this.Struct->PalleteGauge;
/// <summary> /// <summary>
/// Gets the amount of paint the player has. /// Gets the amount of paint the player has.
/// </summary> /// </summary>
public byte Paint => Struct->Paint; public byte Paint => this.Struct->Paint;
/// <summary> /// <summary>
/// Gets a value indicating whether a creature motif is drawn. /// Gets a value indicating whether a creature motif is drawn.
/// </summary> /// </summary>
public bool CreatureMotifDrawn => Struct->CreatureMotifDrawn; public bool CreatureMotifDrawn => this.Struct->CreatureMotifDrawn;
/// <summary> /// <summary>
/// Gets a value indicating whether a weapon motif is drawn. /// Gets a value indicating whether a weapon motif is drawn.
/// </summary> /// </summary>
public bool WeaponMotifDrawn => Struct->WeaponMotifDrawn; public bool WeaponMotifDrawn => this.Struct->WeaponMotifDrawn;
/// <summary> /// <summary>
/// Gets a value indicating whether a landscape motif is drawn. /// Gets a value indicating whether a landscape motif is drawn.
/// </summary> /// </summary>
public bool LandscapeMotifDrawn => Struct->LandscapeMotifDrawn; public bool LandscapeMotifDrawn => this.Struct->LandscapeMotifDrawn;
/// <summary> /// <summary>
/// Gets a value indicating whether a moogle portrait is ready. /// Gets a value indicating whether a moogle portrait is ready.
/// </summary> /// </summary>
public bool MooglePortraitReady => Struct->MooglePortraitReady; public bool MooglePortraitReady => this.Struct->MooglePortraitReady;
/// <summary> /// <summary>
/// Gets a value indicating whether a madeen portrait is ready. /// Gets a value indicating whether a madeen portrait is ready.
/// </summary> /// </summary>
public bool MadeenPortraitReady => Struct->MadeenPortraitReady; public bool MadeenPortraitReady => this.Struct->MadeenPortraitReady;
/// <summary> /// <summary>
/// Gets which creature flags are present. /// Gets which creature flags are present.
/// </summary> /// </summary>
public CreatureFlags CreatureFlags => (CreatureFlags)Struct->CreatureFlags; public CreatureFlags CreatureFlags => (CreatureFlags)this.Struct->CreatureFlags;
/// <summary> /// <summary>
/// Gets which canvas flags are present. /// Gets which canvas flags are present.
/// </summary> /// </summary>
public CanvasFlags CanvasFlags => (CanvasFlags)Struct->CanvasFlags; public CanvasFlags CanvasFlags => (CanvasFlags)this.Struct->CanvasFlags;
} }

View file

@ -24,25 +24,25 @@ public unsafe class VPRGauge : JobGaugeBase<ViperGauge>
/// <summary> /// <summary>
/// Gets how many uses of uncoiled fury the player has. /// Gets how many uses of uncoiled fury the player has.
/// </summary> /// </summary>
public byte RattlingCoilStacks => Struct->RattlingCoilStacks; public byte RattlingCoilStacks => this.Struct->RattlingCoilStacks;
/// <summary> /// <summary>
/// Gets Serpent Offering stacks and gauge. /// Gets Serpent Offering stacks and gauge.
/// </summary> /// </summary>
public byte SerpentOffering => Struct->SerpentOffering; public byte SerpentOffering => this.Struct->SerpentOffering;
/// <summary> /// <summary>
/// Gets value indicating the use of 1st, 2nd, 3rd, 4th generation and Ouroboros. /// Gets value indicating the use of 1st, 2nd, 3rd, 4th generation and Ouroboros.
/// </summary> /// </summary>
public byte AnguineTribute => Struct->AnguineTribute; public byte AnguineTribute => this.Struct->AnguineTribute;
/// <summary> /// <summary>
/// Gets the last Weaponskill used in DreadWinder/Pit of Dread combo. /// Gets the last Weaponskill used in DreadWinder/Pit of Dread combo.
/// </summary> /// </summary>
public DreadCombo DreadCombo => (DreadCombo)Struct->DreadCombo; public DreadCombo DreadCombo => (DreadCombo)this.Struct->DreadCombo;
/// <summary> /// <summary>
/// Gets current ability for Serpent's Tail. /// Gets current ability for Serpent's Tail.
/// </summary> /// </summary>
public SerpentCombo SerpentCombo => (SerpentCombo)Struct->SerpentCombo; public SerpentCombo SerpentCombo => (SerpentCombo)this.Struct->SerpentCombo;
} }

View file

@ -29,50 +29,50 @@ internal sealed unsafe class TargetManager : IServiceType, ITargetManager
/// <inheritdoc/> /// <inheritdoc/>
public IGameObject? Target public IGameObject? Target
{ {
get => this.objectTable.CreateObjectReference((IntPtr)Struct->GetHardTarget()); get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->GetHardTarget());
set => Struct->SetHardTarget((FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address); set => this.Struct->SetHardTarget((FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address);
} }
/// <inheritdoc/> /// <inheritdoc/>
public IGameObject? MouseOverTarget public IGameObject? MouseOverTarget
{ {
get => this.objectTable.CreateObjectReference((IntPtr)Struct->MouseOverTarget); get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->MouseOverTarget);
set => Struct->MouseOverTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; set => this.Struct->MouseOverTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address;
} }
/// <inheritdoc/> /// <inheritdoc/>
public IGameObject? FocusTarget public IGameObject? FocusTarget
{ {
get => this.objectTable.CreateObjectReference((IntPtr)Struct->FocusTarget); get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->FocusTarget);
set => Struct->FocusTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; set => this.Struct->FocusTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address;
} }
/// <inheritdoc/> /// <inheritdoc/>
public IGameObject? PreviousTarget public IGameObject? PreviousTarget
{ {
get => this.objectTable.CreateObjectReference((IntPtr)Struct->PreviousTarget); get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->PreviousTarget);
set => Struct->PreviousTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; set => this.Struct->PreviousTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address;
} }
/// <inheritdoc/> /// <inheritdoc/>
public IGameObject? SoftTarget public IGameObject? SoftTarget
{ {
get => this.objectTable.CreateObjectReference((IntPtr)Struct->GetSoftTarget()); get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->GetSoftTarget());
set => Struct->SetSoftTarget((FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address); set => this.Struct->SetSoftTarget((FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address);
} }
/// <inheritdoc/> /// <inheritdoc/>
public IGameObject? GPoseTarget public IGameObject? GPoseTarget
{ {
get => this.objectTable.CreateObjectReference((IntPtr)Struct->GPoseTarget); get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->GPoseTarget);
set => Struct->GPoseTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; set => this.Struct->GPoseTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address;
} }
/// <inheritdoc/> /// <inheritdoc/>
public IGameObject? MouseOverNameplateTarget public IGameObject? MouseOverNameplateTarget
{ {
get => this.objectTable.CreateObjectReference((IntPtr)Struct->MouseOverNameplateTarget); get => this.objectTable.CreateObjectReference((IntPtr)this.Struct->MouseOverNameplateTarget);
set => Struct->MouseOverNameplateTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address; set => this.Struct->MouseOverNameplateTarget = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)value?.Address;
} }
private TargetSystem* Struct => TargetSystem.Instance(); private TargetSystem* Struct => TargetSystem.Instance();

View file

@ -46,7 +46,7 @@ internal sealed unsafe partial class PartyList : IServiceType, IPartyList
public unsafe IntPtr GroupManagerAddress => (nint)CSGroupManager.Instance(); public unsafe IntPtr GroupManagerAddress => (nint)CSGroupManager.Instance();
/// <inheritdoc/> /// <inheritdoc/>
public IntPtr GroupListAddress => (IntPtr)Unsafe.AsPointer(ref GroupManagerStruct->MainGroup.PartyMembers[0]); public IntPtr GroupListAddress => (IntPtr)Unsafe.AsPointer(ref this.GroupManagerStruct->MainGroup.PartyMembers[0]);
/// <inheritdoc/> /// <inheritdoc/>
public IntPtr AllianceListAddress => (IntPtr)Unsafe.AsPointer(ref this.GroupManagerStruct->MainGroup.AllianceMembers[0]); public IntPtr AllianceListAddress => (IntPtr)Unsafe.AsPointer(ref this.GroupManagerStruct->MainGroup.AllianceMembers[0]);

View file

@ -38,7 +38,7 @@ public sealed unsafe partial class StatusList
/// <summary> /// <summary>
/// Gets the amount of status effect slots the actor has. /// Gets the amount of status effect slots the actor has.
/// </summary> /// </summary>
public int Length => Struct->NumValidStatuses; public int Length => this.Struct->NumValidStatuses;
private static int StatusSize { get; } = Marshal.SizeOf<FFXIVClientStructs.FFXIV.Client.Game.Status>(); private static int StatusSize { get; } = Marshal.SizeOf<FFXIVClientStructs.FFXIV.Client.Game.Status>();

View file

@ -427,8 +427,8 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler
/// <inheritdoc/> /// <inheritdoc/>
public int VisibilityFlags public int VisibilityFlags
{ {
get => ObjectData->VisibilityFlags; get => this.ObjectData->VisibilityFlags;
set => ObjectData->VisibilityFlags = value; set => this.ObjectData->VisibilityFlags = value;
} }
/// <inheritdoc/> /// <inheritdoc/>