fix warnings

This commit is contained in:
goat 2024-07-07 12:42:46 +02:00
parent df51fc17e6
commit d41682b66e
7 changed files with 28 additions and 26 deletions

View file

@ -6,27 +6,27 @@
public enum CreatureFlags : byte public enum CreatureFlags : byte
{ {
/// <summary> /// <summary>
/// Pom flag present /// Pom flag present.
/// </summary> /// </summary>
Pom = 1, Pom = 1,
/// <summary> /// <summary>
/// Wings flag present /// Wings flag present.
/// </summary> /// </summary>
Wings = 2, Wings = 2,
/// <summary> /// <summary>
/// Claw flag present /// Claw flag present.
/// </summary> /// </summary>
Claw = 4, Claw = 4,
/// <summary> /// <summary>
/// Moogle portrait present /// Moogle portrait present.
/// </summary> /// </summary>
MooglePortait = 16, MooglePortait = 16,
/// <summary> /// <summary>
/// Madeen portrait present /// Madeen portrait present.
/// </summary> /// </summary>
MadeenPortrait = 32, MadeenPortrait = 32,
} }

View file

@ -20,47 +20,47 @@ public unsafe class PCTGauge : JobGaugeBase<PictomancerGauge>
} }
/// <summary> /// <summary>
/// Tracks use of subjective pallete /// Gets the use of subjective pallete.
/// </summary> /// </summary>
public byte PalleteGauge => Struct->PalleteGauge; public byte PalleteGauge => Struct->PalleteGauge;
/// <summary> /// <summary>
/// Number of paint the player has. /// Gets the amount of paint the player has.
/// </summary> /// </summary>
public byte Paint => Struct->Paint; public byte Paint => Struct->Paint;
/// <summary> /// <summary>
/// Creature Motif Stack /// Gets a value indicating whether or not a creature motif is drawn.
/// </summary> /// </summary>
public bool CreatureMotifDrawn => Struct->CreatureMotifDrawn; public bool CreatureMotifDrawn => Struct->CreatureMotifDrawn;
/// <summary> /// <summary>
/// Weapon Motif Stack /// Gets a value indicating whether or not a weapon motif is drawn.
/// </summary> /// </summary>
public bool WeaponMotifDrawn => Struct->WeaponMotifDrawn; public bool WeaponMotifDrawn => Struct->WeaponMotifDrawn;
/// <summary> /// <summary>
/// Landscape Motif Stack /// Gets a value indicating whether or not a landscape motif is drawn.
/// </summary> /// </summary>
public bool LandscapeMotifDrawn => Struct->LandscapeMotifDrawn; public bool LandscapeMotifDrawn => Struct->LandscapeMotifDrawn;
/// <summary> /// <summary>
/// Moogle Portrait Stack /// Gets a value indicating whether or not a moogle portrait is ready.
/// </summary> /// </summary>
public bool MooglePortraitReady => Struct->MooglePortraitReady; public bool MooglePortraitReady => Struct->MooglePortraitReady;
/// <summary> /// <summary>
/// Madeen Portrait Stack /// Gets a value indicating whether or not a madeen portrait is ready.
/// </summary> /// </summary>
public bool MadeenPortraitReady => Struct->MadeenPortraitReady; public bool MadeenPortraitReady => Struct->MadeenPortraitReady;
/// <summary> /// <summary>
/// Which creature flags are present. /// Gets which creature flags are present.
/// </summary> /// </summary>
public CreatureFlags CreatureFlags => (CreatureFlags)Struct->CreatureFlags; public CreatureFlags CreatureFlags => (CreatureFlags)Struct->CreatureFlags;
/// <summary> /// <summary>
/// Which canvas flags are present. /// Gets which canvas flags are present.
/// </summary> /// </summary>
public CanvasFlags CanvasFlags => (CanvasFlags)Struct->CanvasFlags; public CanvasFlags CanvasFlags => (CanvasFlags)Struct->CanvasFlags;
} }

View file

@ -21,22 +21,22 @@ public unsafe class VPRGauge : JobGaugeBase<ViperGauge>
} }
/// <summary> /// <summary>
/// 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 => Struct->RattlingCoilStacks;
/// <summary> /// <summary>
/// Tracks AnguineTribute stacks and gauge. /// Gets Serpent Offering stacks and gauge.
/// </summary> /// </summary>
public byte SerpentOffering => Struct->SerpentOffering; public byte SerpentOffering => Struct->SerpentOffering;
/// <summary> /// <summary>
/// Allows 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 => Struct->AnguineTribute;
/// <summary> /// <summary>
/// Keeps track of 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)Struct->DreadCombo;
} }

View file

@ -223,6 +223,7 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui
worldPos = Vector3.Zero; worldPos = Vector3.Zero;
return false; return false;
} }
var ray = camera->ScreenPointToRay(screenPos); var ray = camera->ScreenPointToRay(screenPos);
var result = BGCollisionModule.RaycastMaterialFilter(ray.Origin, ray.Direction, out var hit); var result = BGCollisionModule.RaycastMaterialFilter(ray.Origin, ray.Direction, out var hit);
worldPos = hit.Point; worldPos = hit.Point;

View file

@ -39,6 +39,7 @@ internal sealed class GameGuiAddressResolver : BaseAddressResolver
/// Gets the address of the native HandleImm method. /// Gets the address of the native HandleImm method.
/// </summary> /// </summary>
public IntPtr HandleImm { get; private set; } public IntPtr HandleImm { get; private set; }
/// <summary> /// <summary>
/// Gets the address of the native ToggleUiHide method. /// Gets the address of the native ToggleUiHide method.
/// </summary> /// </summary>

View file

@ -64,13 +64,7 @@ internal unsafe struct PartyFinderPacketListing
private fixed byte description[192]; private fixed byte description[192];
private fixed byte padding14[4]; private fixed byte padding14[4];
internal bool IsNull()
{
// a valid party finder must have at least one slot set
return this.Slots.All(slot => slot == 0);
}
#region Helper #region Helper
internal ulong[] Slots internal ulong[] Slots
@ -118,4 +112,10 @@ internal unsafe struct PartyFinderPacketListing
} }
#endregion #endregion
internal bool IsNull()
{
// a valid party finder must have at least one slot set
return this.Slots.All(slot => slot == 0);
}
} }

View file

@ -16,7 +16,7 @@ internal class MarketBoardItemRequest
/// <summary> /// <summary>
/// Gets the request status. Nonzero statuses are errors. /// Gets the request status. Nonzero statuses are errors.
/// Known values: default=0; rate limited=0x70000003 /// Known values: default=0; rate limited=0x70000003.
/// </summary> /// </summary>
public uint Status { get; private set; } public uint Status { get; private set; }