mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: expose ContentIdLower for PF listings
This commit is contained in:
parent
194fbc6e32
commit
d670bd9230
1 changed files with 6 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ namespace Dalamud.Game.Internal.Gui.Structs {
|
|||
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
|
||||
private readonly byte[] header2;
|
||||
|
||||
private readonly uint unknownInt1;
|
||||
internal readonly uint contentIdLower;
|
||||
private readonly ushort unknownShort1;
|
||||
private readonly ushort unknownShort2;
|
||||
|
||||
|
|
@ -123,6 +123,10 @@ namespace Dalamud.Game.Internal.Gui.Structs {
|
|||
/// </summary>
|
||||
public uint Id { get; }
|
||||
/// <summary>
|
||||
/// The lower bits of the player's content ID.
|
||||
/// </summary>
|
||||
public uint ContentIdLower { get; }
|
||||
/// <summary>
|
||||
/// The name of the player hosting this listing.
|
||||
/// </summary>
|
||||
public SeString Name { get; }
|
||||
|
|
@ -256,6 +260,7 @@ namespace Dalamud.Game.Internal.Gui.Structs {
|
|||
this.jobsPresent = listing.jobsPresent;
|
||||
|
||||
Id = listing.id;
|
||||
ContentIdLower = listing.contentIdLower;
|
||||
Name = seStringManager.Parse(listing.name.TakeWhile(b => b != 0).ToArray());
|
||||
Description = seStringManager.Parse(listing.description.TakeWhile(b => b != 0).ToArray());
|
||||
World = new Lazy<World>(() => dataManager.GetExcelSheet<World>().GetRow(listing.world));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue