mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
8d8adde2b1
sealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealedsealed
15 lines
No EOL
931 B
C#
15 lines
No EOL
931 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public sealed class FieldMoveModelSave7 : SaveBlock
|
|
{
|
|
public FieldMoveModelSave7(SAV7 sav, int offset) : base(sav) => Offset = offset;
|
|
|
|
public int M { get => BitConverter.ToUInt16(Data, Offset + 0x00); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, Offset + 0x00); }
|
|
public float X { get => BitConverter.ToSingle(Data, Offset + 0x08); set => BitConverter.GetBytes(value).CopyTo(Data, Offset + 0x08); }
|
|
public float Z { get => BitConverter.ToSingle(Data, Offset + 0x10); set => BitConverter.GetBytes(value).CopyTo(Data, Offset + 0x10); }
|
|
public float Y { get => (int)BitConverter.ToSingle(Data, Offset + 0x18); set => BitConverter.GetBytes(value).CopyTo(Data, Offset + 0x18); }
|
|
public float R { get => (int)BitConverter.ToSingle(Data, Offset + 0x20); set => BitConverter.GetBytes(value).CopyTo(Data, Offset + 0x20); }
|
|
}
|
|
} |