mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 06:47:44 +01:00
fix all warnings and breaking changes for CS (#2061)
This commit is contained in:
parent
b570564258
commit
30d56e4d11
10 changed files with 24 additions and 14 deletions
|
|
@ -71,8 +71,14 @@ public interface IFate : IEquatable<IFate>
|
|||
/// <summary>
|
||||
/// Gets a value indicating whether or not this <see cref="Fate"/> has a EXP bonus.
|
||||
/// </summary>
|
||||
[Obsolete("Use HasBonus instead")]
|
||||
bool HasExpBonus { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether or not this <see cref="Fate"/> has a bonus.
|
||||
/// </summary>
|
||||
bool HasBonus { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the icon id of this <see cref="Fate"/>.
|
||||
/// </summary>
|
||||
|
|
@ -216,8 +222,12 @@ internal unsafe partial class Fate : IFate
|
|||
public byte Progress => this.Struct->Progress;
|
||||
|
||||
/// <inheritdoc/>
|
||||
[Obsolete("Use HasBonus instead")]
|
||||
public bool HasExpBonus => this.Struct->IsExpBonus;
|
||||
|
||||
/// <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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
|
|
@ -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/>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public unsafe struct GameInventoryItem : IEquatable<GameInventoryItem>
|
|||
/// <summary>
|
||||
/// Gets the quantity of items in this item stack.
|
||||
/// </summary>
|
||||
public uint Quantity => this.InternalItem.Quantity;
|
||||
public int Quantity => this.InternalItem.Quantity;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the spiritbond of this item.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue