mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-23 19:03:11 +00:00
01fb233e48
Extract some interfaces Suppress some warning messages with commented reasons if appropriate
16 lines
944 B
C#
16 lines
944 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
public sealed class Situation8 : SaveBlock
|
|
{
|
|
public Situation8(SAV8SWSH sav, SCBlock block) : base(sav, block.Data) { }
|
|
|
|
// "StartLocation"
|
|
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); }
|
|
}
|
|
}
|