mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Some character equip changes.
This commit is contained in:
parent
7a7093369f
commit
ee48c7803c
1 changed files with 111 additions and 105 deletions
|
|
@ -1,8 +1,12 @@
|
||||||
using System;
|
using System;
|
||||||
using Penumbra.GameData.Enums;
|
using Penumbra.GameData.Enums;
|
||||||
using Penumbra.GameData.Structs;
|
|
||||||
|
|
||||||
namespace Glamourer;
|
namespace Penumbra.GameData.Structs;
|
||||||
|
|
||||||
|
public unsafe struct CharacterArmorData
|
||||||
|
{
|
||||||
|
public fixed byte Data[40];
|
||||||
|
}
|
||||||
|
|
||||||
public readonly unsafe struct CharacterEquip
|
public readonly unsafe struct CharacterEquip
|
||||||
{
|
{
|
||||||
|
|
@ -65,7 +69,9 @@ public readonly unsafe struct CharacterEquip
|
||||||
public static implicit operator CharacterEquip( ReadOnlySpan< CharacterArmor > val )
|
public static implicit operator CharacterEquip( ReadOnlySpan< CharacterArmor > val )
|
||||||
{
|
{
|
||||||
if( val.Length != 10 )
|
if( val.Length != 10 )
|
||||||
|
{
|
||||||
throw new ArgumentException( "Invalid number of equipment pieces in span." );
|
throw new ArgumentException( "Invalid number of equipment pieces in span." );
|
||||||
|
}
|
||||||
|
|
||||||
fixed( CharacterArmor* ptr = val )
|
fixed( CharacterArmor* ptr = val )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue