2023-12-04 04:13:20 +00:00
using System ;
2022-01-03 05:35:59 +00:00
using static System . Buffers . Binary . BinaryPrimitives ;
2019-06-09 02:56:11 +00:00
2022-06-18 18:04:24 +00:00
namespace PKHeX.Core ;
public sealed class FieldMoveModelSave7 : SaveBlock < SAV7 >
2019-06-09 02:56:11 +00:00
{
2022-06-18 18:04:24 +00:00
public FieldMoveModelSave7 ( SAV7SM sav , int offset ) : base ( sav ) = > Offset = offset ;
public FieldMoveModelSave7 ( SAV7USUM sav , int offset ) : base ( sav ) = > Offset = offset ;
2019-06-09 02:56:11 +00:00
2023-12-04 04:13:20 +00:00
//public int Unknown { get => ReadUInt16LittleEndian(Data.AsSpan(Offset + 0x00)); set => WriteUInt16LittleEndian(Data.AsSpan(Offset + 0x00), (ushort)value); } // related to Ride Pokémon
2022-06-18 18:04:24 +00:00
public float X { get = > ReadSingleLittleEndian ( Data . AsSpan ( Offset + 0x08 ) ) ; set = > WriteSingleLittleEndian ( Data . AsSpan ( Offset + 0x08 ) , value ) ; }
2023-11-02 22:32:45 +00:00
public float Z { get = > ReadSingleLittleEndian ( Data . AsSpan ( Offset + 0x0C ) ) ; set = > WriteSingleLittleEndian ( Data . AsSpan ( Offset + 0x0C ) , value ) ; }
public float Y { get = > ReadSingleLittleEndian ( Data . AsSpan ( Offset + 0x10 ) ) ; set = > WriteSingleLittleEndian ( Data . AsSpan ( Offset + 0x10 ) , value ) ; }
public float RX { get = > ReadSingleLittleEndian ( Data . AsSpan ( Offset + 0x14 ) ) ; set = > WriteSingleLittleEndian ( Data . AsSpan ( Offset + 0x14 ) , value ) ; }
public float RZ { get = > ReadSingleLittleEndian ( Data . AsSpan ( Offset + 0x18 ) ) ; set = > WriteSingleLittleEndian ( Data . AsSpan ( Offset + 0x18 ) , value ) ; }
public float RY { get = > ReadSingleLittleEndian ( Data . AsSpan ( Offset + 0x1C ) ) ; set = > WriteSingleLittleEndian ( Data . AsSpan ( Offset + 0x1C ) , value ) ; }
public float RW { get = > ReadSingleLittleEndian ( Data . AsSpan ( Offset + 0x20 ) ) ; set = > WriteSingleLittleEndian ( Data . AsSpan ( Offset + 0x20 ) , value ) ; }
2022-06-18 18:04:24 +00:00
}