fix: JobGauge enum casing

This commit is contained in:
Kaz Wolfe 2025-03-24 11:31:19 -07:00
parent c0c61c66be
commit 84f5dad0a3
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
15 changed files with 69 additions and 69 deletions

View file

@ -8,20 +8,20 @@ public enum BeastChakra : byte
/// <summary> /// <summary>
/// No chakra. /// No chakra.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// The Opo-Opo chakra. /// The Opo-Opo chakra.
/// </summary> /// </summary>
OPOOPO = 1, OpoOpo = 1,
/// <summary> /// <summary>
/// The Raptor chakra. /// The Raptor chakra.
/// </summary> /// </summary>
RAPTOR = 2, Raptor = 2,
/// <summary> /// <summary>
/// The Coeurl chakra. /// The Coeurl chakra.
/// </summary> /// </summary>
COEURL = 3, Coeurl = 3,
} }

View file

@ -8,45 +8,45 @@ public enum CardType : byte
/// <summary> /// <summary>
/// No card. /// No card.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// The Balance card. /// The Balance card.
/// </summary> /// </summary>
BALANCE = 1, Balance = 1,
/// <summary> /// <summary>
/// The Bole card. /// The Bole card.
/// </summary> /// </summary>
BOLE = 2, Bole = 2,
/// <summary> /// <summary>
/// The Arrow card. /// The Arrow card.
/// </summary> /// </summary>
ARROW = 3, Arrow = 3,
/// <summary> /// <summary>
/// The Spear card. /// The Spear card.
/// </summary> /// </summary>
SPEAR = 4, Spear = 4,
/// <summary> /// <summary>
/// The Ewer card. /// The Ewer card.
/// </summary> /// </summary>
EWER = 5, Ewer = 5,
/// <summary> /// <summary>
/// The Spire card. /// The Spire card.
/// </summary> /// </summary>
SPIRE = 6, Spire = 6,
/// <summary> /// <summary>
/// The Lord of Crowns card. /// The Lord of Crowns card.
/// </summary> /// </summary>
LORD = 7, Lord = 7,
/// <summary> /// <summary>
/// The Lady of Crowns card. /// The Lady of Crowns card.
/// </summary> /// </summary>
LADY = 8, Lady = 8,
} }

View file

@ -8,10 +8,10 @@ public enum DismissedFairy : byte
/// <summary> /// <summary>
/// Dismissed fairy is Eos. /// Dismissed fairy is Eos.
/// </summary> /// </summary>
EOS = 6, Eos = 6,
/// <summary> /// <summary>
/// Dismissed fairy is Selene. /// Dismissed fairy is Selene.
/// </summary> /// </summary>
SELENE = 7, Selene = 7,
} }

View file

@ -8,10 +8,10 @@ public enum DrawType : byte
/// <summary> /// <summary>
/// Astral Draw active. /// Astral Draw active.
/// </summary> /// </summary>
ASTRAL = 0, Astral = 0,
/// <summary> /// <summary>
/// Umbral Draw active. /// Umbral Draw active.
/// </summary> /// </summary>
UMBRAL = 1, Umbral = 1,
} }

View file

@ -8,25 +8,25 @@ public enum Kaeshi : byte
/// <summary> /// <summary>
/// No Kaeshi is active. /// No Kaeshi is active.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// Kaeshi: Higanbana type. /// Kaeshi: Higanbana type.
/// </summary> /// </summary>
HIGANBANA = 1, Higanbana = 1,
/// <summary> /// <summary>
/// Kaeshi: Goken type. /// Kaeshi: Goken type.
/// </summary> /// </summary>
GOKEN = 2, Goken = 2,
/// <summary> /// <summary>
/// Kaeshi: Setsugekka type. /// Kaeshi: Setsugekka type.
/// </summary> /// </summary>
SETSUGEKKA = 3, Setsugekka = 3,
/// <summary> /// <summary>
/// Kaeshi: Namikiri type. /// Kaeshi: Namikiri type.
/// </summary> /// </summary>
NAMIKIRI = 4, Namikiri = 4,
} }

View file

@ -8,15 +8,15 @@ public enum Mudras : byte
/// <summary> /// <summary>
/// Ten mudra. /// Ten mudra.
/// </summary> /// </summary>
TEN = 1, Ten = 1,
/// <summary> /// <summary>
/// Chi mudra. /// Chi mudra.
/// </summary> /// </summary>
CHI = 2, Chi = 2,
/// <summary> /// <summary>
/// Jin mudra. /// Jin mudra.
/// </summary> /// </summary>
JIN = 3, Jin = 3,
} }

View file

@ -9,15 +9,15 @@ public enum Nadi : byte
/// <summary> /// <summary>
/// No nadi. /// No nadi.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// The Lunar nadi. /// The Lunar nadi.
/// </summary> /// </summary>
LUNAR = 1, Lunar = 1,
/// <summary> /// <summary>
/// The Solar nadi. /// The Solar nadi.
/// </summary> /// </summary>
SOLAR = 2, Solar = 2,
} }

View file

@ -8,40 +8,40 @@ public enum PetGlam : byte
/// <summary> /// <summary>
/// No pet glam. /// No pet glam.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// Emerald carbuncle pet glam. /// Emerald carbuncle pet glam.
/// </summary> /// </summary>
EMERALD = 1, Emerald = 1,
/// <summary> /// <summary>
/// Topaz carbuncle pet glam. /// Topaz carbuncle pet glam.
/// </summary> /// </summary>
TOPAZ = 2, Topaz = 2,
/// <summary> /// <summary>
/// Ruby carbuncle pet glam. /// Ruby carbuncle pet glam.
/// </summary> /// </summary>
RUBY = 3, Ruby = 3,
/// <summary> /// <summary>
/// Normal carbuncle pet glam. /// Normal carbuncle pet glam.
/// </summary> /// </summary>
CARBUNCLE = 4, Carbuncle = 4,
/// <summary> /// <summary>
/// Ifrit Egi pet glam. /// Ifrit Egi pet glam.
/// </summary> /// </summary>
IFRIT = 5, Ifrit = 5,
/// <summary> /// <summary>
/// Titan Egi pet glam. /// Titan Egi pet glam.
/// </summary> /// </summary>
TITAN = 6, Titan = 6,
/// <summary> /// <summary>
/// Garuda Egi pet glam. /// Garuda Egi pet glam.
/// </summary> /// </summary>
GARUDA = 7, Garuda = 7,
} }

View file

@ -9,20 +9,20 @@ public enum Sen : byte
/// <summary> /// <summary>
/// No Sen. /// No Sen.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// Setsu Sen type. /// Setsu Sen type.
/// </summary> /// </summary>
SETSU = 1 << 0, Setsu = 1 << 0,
/// <summary> /// <summary>
/// Getsu Sen type. /// Getsu Sen type.
/// </summary> /// </summary>
GETSU = 1 << 1, Getsu = 1 << 1,
/// <summary> /// <summary>
/// Ka Sen type. /// Ka Sen type.
/// </summary> /// </summary>
KA = 1 << 2, Ka = 1 << 2,
} }

View file

@ -8,35 +8,35 @@ public enum SerpentCombo : byte
/// <summary> /// <summary>
/// No Serpent combo is active. /// No Serpent combo is active.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// Death Rattle action. /// Death Rattle action.
/// </summary> /// </summary>
DEATHRATTLE = 1, DeathRattle = 1,
/// <summary> /// <summary>
/// Last Lash action. /// Last Lash action.
/// </summary> /// </summary>
LASTLASH = 2, LastLash = 2,
/// <summary> /// <summary>
/// First Legacy action. /// First Legacy action.
/// </summary> /// </summary>
FIRSTLEGACY = 3, FirstLegacy = 3,
/// <summary> /// <summary>
/// Second Legacy action. /// Second Legacy action.
/// </summary> /// </summary>
SECONDLEGACY = 4, SecondLegacy = 4,
/// <summary> /// <summary>
/// Third Legacy action. /// Third Legacy action.
/// </summary> /// </summary>
THIRDLEGACY = 5, ThirdLegacy = 5,
/// <summary> /// <summary>
/// Fourth Legacy action. /// Fourth Legacy action.
/// </summary> /// </summary>
FOURTHLEGACY = 6, FourthLegacy = 6,
} }

View file

@ -8,20 +8,20 @@ public enum Song : byte
/// <summary> /// <summary>
/// No song is active type. /// No song is active type.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// Mage's Ballad type. /// Mage's Ballad type.
/// </summary> /// </summary>
MAGE = 1, Mage = 1,
/// <summary> /// <summary>
/// Army's Paeon type. /// Army's Paeon type.
/// </summary> /// </summary>
ARMY = 2, Army = 2,
/// <summary> /// <summary>
/// The Wanderer's Minuet type. /// The Wanderer's Minuet type.
/// </summary> /// </summary>
WANDERER = 3, Wanderer = 3,
} }

View file

@ -8,10 +8,10 @@ public enum SummonPet : byte
/// <summary> /// <summary>
/// No pet. /// No pet.
/// </summary> /// </summary>
NONE = 0, None = 0,
/// <summary> /// <summary>
/// The summoned pet Carbuncle. /// The summoned pet Carbuncle.
/// </summary> /// </summary>
CARBUNCLE = 23, Carbuncle = 23,
} }

View file

@ -40,15 +40,15 @@ public unsafe class BRDGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
get get
{ {
if (this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuet)) if (this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuet))
return Song.WANDERER; return Song.Wanderer;
if (this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeon)) if (this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeon))
return Song.ARMY; return Song.Army;
if (this.Struct->SongFlags.HasFlag(SongFlags.MagesBallad)) if (this.Struct->SongFlags.HasFlag(SongFlags.MagesBallad))
return Song.MAGE; return Song.Mage;
return Song.NONE; return Song.None;
} }
} }
@ -60,15 +60,15 @@ public unsafe class BRDGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
get get
{ {
if (this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuetLastPlayed)) if (this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuetLastPlayed))
return Song.WANDERER; return Song.Wanderer;
if (this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeonLastPlayed)) if (this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeonLastPlayed))
return Song.ARMY; return Song.Army;
if (this.Struct->SongFlags.HasFlag(SongFlags.MagesBalladLastPlayed)) if (this.Struct->SongFlags.HasFlag(SongFlags.MagesBalladLastPlayed))
return Song.MAGE; return Song.Mage;
return Song.NONE; return Song.None;
} }
} }
@ -76,7 +76,7 @@ public unsafe class BRDGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
/// Gets the song Coda that are currently active. /// Gets the song Coda that are currently active.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This will always return an array of size 3, inactive Coda are represented by <see cref="Song.NONE"/>. /// This will always return an array of size 3, inactive Coda are represented by <see cref="Enums.Song.None"/>.
/// </remarks> /// </remarks>
public Song[] Coda public Song[] Coda
{ {
@ -84,9 +84,9 @@ public unsafe class BRDGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
{ {
return new[] return new[]
{ {
this.Struct->SongFlags.HasFlag(SongFlags.MagesBalladCoda) ? Song.MAGE : Song.NONE, this.Struct->SongFlags.HasFlag(SongFlags.MagesBalladCoda) ? Song.Mage : Song.None,
this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeonCoda) ? Song.ARMY : Song.NONE, this.Struct->SongFlags.HasFlag(SongFlags.ArmysPaeonCoda) ? Song.Army : Song.None,
this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuetCoda) ? Song.WANDERER : Song.NONE, this.Struct->SongFlags.HasFlag(SongFlags.WanderersMinuetCoda) ? Song.Wanderer : Song.None,
}; };
} }
} }

View file

@ -27,7 +27,7 @@ public unsafe class MNKGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
/// Gets the types of Beast Chakra available. /// Gets the types of Beast Chakra available.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// This will always return an array of size 3, inactive Beast Chakra are represented by <see cref="BeastChakra.NONE"/>. /// This will always return an array of size 3, inactive Beast Chakra are represented by <see cref="Enums.BeastChakra.None"/>.
/// </remarks> /// </remarks>
public BeastChakra[] BeastChakra => this.Struct->BeastChakra.Select(c => (BeastChakra)c).ToArray(); public BeastChakra[] BeastChakra => this.Struct->BeastChakra.Select(c => (BeastChakra)c).ToArray();

View file

@ -40,17 +40,17 @@ public unsafe class SAMGauge : JobGaugeBase<FFXIVClientStructs.FFXIV.Client.Game
/// Gets a value indicating whether the Setsu Sen is active. /// Gets a value indicating whether the Setsu Sen is active.
/// </summary> /// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns> /// <returns><c>true</c> or <c>false</c>.</returns>
public bool HasSetsu => (this.Sen & Sen.SETSU) != 0; public bool HasSetsu => (this.Sen & Sen.Setsu) != 0;
/// <summary> /// <summary>
/// Gets a value indicating whether the Getsu Sen is active. /// Gets a value indicating whether the Getsu Sen is active.
/// </summary> /// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns> /// <returns><c>true</c> or <c>false</c>.</returns>
public bool HasGetsu => (this.Sen & Sen.GETSU) != 0; public bool HasGetsu => (this.Sen & Sen.Getsu) != 0;
/// <summary> /// <summary>
/// Gets a value indicating whether the Ka Sen is active. /// Gets a value indicating whether the Ka Sen is active.
/// </summary> /// </summary>
/// <returns><c>true</c> or <c>false</c>.</returns> /// <returns><c>true</c> or <c>false</c>.</returns>
public bool HasKa => (this.Sen & Sen.KA) != 0; public bool HasKa => (this.Sen & Sen.Ka) != 0;
} }