mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 04:34:19 +01:00
Glamourer changes
This commit is contained in:
parent
5f63d4de38
commit
0239c2f60b
3 changed files with 28 additions and 29 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Penumbra.GameData.Enums;
|
namespace Penumbra.GameData.Enums;
|
||||||
|
|
|
||||||
|
|
@ -4,19 +4,19 @@ using System.Runtime.InteropServices;
|
||||||
namespace Penumbra.GameData.Structs;
|
namespace Penumbra.GameData.Structs;
|
||||||
|
|
||||||
[StructLayout( LayoutKind.Explicit, Pack = 1 )]
|
[StructLayout( LayoutKind.Explicit, Pack = 1 )]
|
||||||
public readonly struct CharacterArmor : IEquatable< CharacterArmor >
|
public struct CharacterArmor : IEquatable< CharacterArmor >
|
||||||
{
|
{
|
||||||
[FieldOffset( 0 )]
|
[FieldOffset( 0 )]
|
||||||
public readonly uint Value;
|
public uint Value;
|
||||||
|
|
||||||
[FieldOffset( 0 )]
|
[FieldOffset( 0 )]
|
||||||
public readonly SetId Set;
|
public SetId Set;
|
||||||
|
|
||||||
[FieldOffset( 2 )]
|
[FieldOffset( 2 )]
|
||||||
public readonly byte Variant;
|
public byte Variant;
|
||||||
|
|
||||||
[FieldOffset( 3 )]
|
[FieldOffset( 3 )]
|
||||||
public readonly StainId Stain;
|
public StainId Stain;
|
||||||
|
|
||||||
public CharacterArmor( SetId set, byte variant, StainId stain )
|
public CharacterArmor( SetId set, byte variant, StainId stain )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,19 +4,19 @@ using System.Runtime.InteropServices;
|
||||||
namespace Penumbra.GameData.Structs;
|
namespace Penumbra.GameData.Structs;
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Explicit, Pack = 1, Size = 7)]
|
[StructLayout(LayoutKind.Explicit, Pack = 1, Size = 7)]
|
||||||
public readonly struct CharacterWeapon : IEquatable< CharacterWeapon >
|
public struct CharacterWeapon : IEquatable<CharacterWeapon>
|
||||||
{
|
{
|
||||||
[FieldOffset(0)]
|
[FieldOffset(0)]
|
||||||
public readonly SetId Set;
|
public SetId Set;
|
||||||
|
|
||||||
[FieldOffset(2)]
|
[FieldOffset(2)]
|
||||||
public readonly WeaponType Type;
|
public WeaponType Type;
|
||||||
|
|
||||||
[FieldOffset(4)]
|
[FieldOffset(4)]
|
||||||
public readonly ushort Variant;
|
public ushort Variant;
|
||||||
|
|
||||||
[FieldOffset(6)]
|
[FieldOffset(6)]
|
||||||
public readonly StainId Stain;
|
public StainId Stain;
|
||||||
|
|
||||||
public ulong Value
|
public ulong Value
|
||||||
=> (ulong)Set | ((ulong)Type << 16) | ((ulong)Variant << 32) | ((ulong)Stain << 48);
|
=> (ulong)Set | ((ulong)Type << 16) | ((ulong)Variant << 32) | ((ulong)Stain << 48);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue