mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Some cleanup
This commit is contained in:
parent
80edfe7804
commit
fee3f500c5
3 changed files with 17 additions and 8 deletions
|
|
@ -104,9 +104,10 @@ public readonly unsafe struct CharacterEquip
|
|||
};
|
||||
}
|
||||
|
||||
public void Write( IntPtr target )
|
||||
|
||||
public void Load( CharacterEquip source )
|
||||
{
|
||||
Functions.MemCpyUnchecked( ( void* )target, _armor, sizeof( CharacterArmor ) * 10 );
|
||||
Functions.MemCpyUnchecked( _armor, source._armor, sizeof( CharacterArmor ) * 10 );
|
||||
}
|
||||
|
||||
public bool Equals( CharacterEquip other )
|
||||
|
|
|
|||
|
|
@ -32,6 +32,14 @@ public readonly struct CharacterWeapon : IEquatable< CharacterWeapon >
|
|||
Stain = stain;
|
||||
}
|
||||
|
||||
public CharacterWeapon( ulong value )
|
||||
{
|
||||
Set = ( SetId )value;
|
||||
Type = ( WeaponType )( value >> 16 );
|
||||
Variant = ( ushort )( value >> 32 );
|
||||
Stain = ( StainId )( value >> 48 );
|
||||
}
|
||||
|
||||
public static readonly CharacterWeapon Empty = new(0, 0, 0, 0);
|
||||
|
||||
public bool Equals( CharacterWeapon other )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue