mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 08:17:47 +01:00
fix some warnings
This commit is contained in:
parent
0c87717ffc
commit
8956bd54a9
9 changed files with 27 additions and 16 deletions
|
|
@ -52,7 +52,7 @@ public enum AddonEvent
|
|||
PostDraw,
|
||||
|
||||
/// <summary>
|
||||
/// An event that is fired immediately before an addon is finalized via <see cref="AtkUnitBase.Finalize"/> and
|
||||
/// An event that is fired immediately before an addon is finalized via <see cref="AtkUnitBase.Finalizer"/> and
|
||||
/// destroyed. After this event, the addon will destruct its UI node data as well as free any allocated memory.
|
||||
/// This event can be used for cleanup and tracking tasks.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using Dalamud.Data;
|
|||
using Dalamud.Game.ClientState.Resolvers;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Memory;
|
||||
using Dalamud.Utility;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Fates;
|
||||
|
||||
|
|
@ -70,7 +71,13 @@ public interface IFate : IEquatable<IFate>
|
|||
/// <summary>
|
||||
/// Gets a value indicating whether or not this <see cref="Fate"/> has a EXP bonus.
|
||||
/// </summary>
|
||||
[Api11ToDo("Remove this")]
|
||||
bool HasExpBonus { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not this <see cref="Fate"/> has a EXP bonus.
|
||||
/// </summary>
|
||||
bool HasBonus { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the icon id of this <see cref="Fate"/>.
|
||||
|
|
@ -215,7 +222,10 @@ internal unsafe partial class Fate : IFate
|
|||
public byte Progress => this.Struct->Progress;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool HasExpBonus => this.Struct->IsExpBonus;
|
||||
public bool HasExpBonus => this.Struct->IsBonus;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool HasBonus => this.Struct->IsBonus;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public uint IconId => this.Struct->IconId;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ internal unsafe class NamePlateUpdateContext : INamePlateUpdateContext
|
|||
/// <summary>
|
||||
/// Gets a pointer to the NamePlate addon's number array entries as a struct.
|
||||
/// </summary>
|
||||
internal AddonNamePlate.NamePlateIntArrayData* NumberStruct { get; private set; }
|
||||
internal AddonNamePlate.AddonNamePlateNumberArray* NumberStruct { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether any handler in the current context has instantiated a part builder.
|
||||
|
|
@ -142,7 +142,7 @@ internal unsafe class NamePlateUpdateContext : INamePlateUpdateContext
|
|||
{
|
||||
this.Addon = (AddonNamePlate*)args.Addon;
|
||||
this.NumberData = ((NumberArrayData**)args.NumberArrayData)![NamePlateGui.NumberArrayIndex];
|
||||
this.NumberStruct = (AddonNamePlate.NamePlateIntArrayData*)this.NumberData->IntArray;
|
||||
this.NumberStruct = (AddonNamePlate.AddonNamePlateNumberArray*)this.NumberData->IntArray;
|
||||
this.StringData = ((StringArrayData**)args.StringArrayData)![NamePlateGui.StringArrayIndex];
|
||||
this.HasParts = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -490,7 +490,7 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler
|
|||
private AddonNamePlate.NamePlateObject* NamePlateObject =>
|
||||
&this.context.Addon->NamePlateObjectArray[this.NamePlateIndex];
|
||||
|
||||
private AddonNamePlate.NamePlateIntArrayData.NamePlateObjectIntArrayData* ObjectData =>
|
||||
private AddonNamePlate.AddonNamePlateNumberArray.NamePlateObjectIntArrayData* ObjectData =>
|
||||
this.context.NumberStruct->ObjectData.GetPointer(this.ArrayIndex);
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue