mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 05:43:42 +01:00
Extract Strings to separate submodule.
This commit is contained in:
parent
bc901f3ff6
commit
35baba18bf
75 changed files with 751 additions and 1657 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.GameData.Util;
|
||||
using Penumbra.String.Functions;
|
||||
|
||||
namespace Penumbra.GameData.Structs;
|
||||
|
||||
|
|
@ -107,9 +108,9 @@ public readonly unsafe struct CharacterEquip
|
|||
|
||||
public void Load( CharacterEquip source )
|
||||
{
|
||||
Functions.MemCpyUnchecked( _armor, source._armor, sizeof( CharacterArmor ) * 10 );
|
||||
MemoryUtility.MemCpyUnchecked( _armor, source._armor, sizeof( CharacterArmor ) * 10 );
|
||||
}
|
||||
|
||||
public bool Equals( CharacterEquip other )
|
||||
=> Functions.MemCmpUnchecked( ( void* )_armor, ( void* )other._armor, sizeof( CharacterArmor ) * 10 ) == 0;
|
||||
=> MemoryUtility.MemCmpUnchecked( ( void* )_armor, ( void* )other._armor, sizeof( CharacterArmor ) * 10 ) == 0;
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using Penumbra.GameData.Util;
|
||||
using Penumbra.String.Functions;
|
||||
|
||||
namespace Penumbra.GameData.Structs;
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ public unsafe struct CustomizeData : IEquatable< CustomizeData >
|
|||
{
|
||||
fixed( byte* ptr = Data )
|
||||
{
|
||||
Functions.MemCpyUnchecked( ptr, source, Size );
|
||||
MemoryUtility.MemCpyUnchecked( ptr, source, Size );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ public unsafe struct CustomizeData : IEquatable< CustomizeData >
|
|||
{
|
||||
fixed( byte* ptr = Data )
|
||||
{
|
||||
Functions.MemCpyUnchecked( target, ptr, Size );
|
||||
MemoryUtility.MemCpyUnchecked( target, ptr, Size );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -36,12 +36,12 @@ public unsafe struct CustomizeData : IEquatable< CustomizeData >
|
|||
{
|
||||
fixed( byte* ptr = Data )
|
||||
{
|
||||
return Functions.MemCmpUnchecked( ptr, other.Data, Size ) == 0;
|
||||
return MemoryUtility.MemCmpUnchecked( ptr, other.Data, Size ) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool Equals( CustomizeData* lhs, CustomizeData* rhs )
|
||||
=> Functions.MemCmpUnchecked( lhs, rhs, Size ) == 0;
|
||||
=> MemoryUtility.MemCmpUnchecked( lhs, rhs, Size ) == 0;
|
||||
|
||||
public override bool Equals( object? obj )
|
||||
=> obj is CustomizeData other && Equals( other );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue