2019-09-23 23:56:47 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2019-10-04 02:09:02 +00:00
|
|
|
|
public sealed class MyStatus8 : SaveBlock
|
2019-09-23 23:56:47 +00:00
|
|
|
|
{
|
2019-11-16 01:34:18 +00:00
|
|
|
|
public MyStatus8(SAV8SWSH sav, SCBlock block) : base(sav, block.Data) { }
|
2019-09-23 23:56:47 +00:00
|
|
|
|
|
|
|
|
|
public int TID
|
|
|
|
|
{
|
2019-11-16 01:34:18 +00:00
|
|
|
|
get => BitConverter.ToUInt16(Data, 0xA0);
|
|
|
|
|
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0xA0);
|
2019-09-23 23:56:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int SID
|
|
|
|
|
{
|
2019-11-16 01:34:18 +00:00
|
|
|
|
get => BitConverter.ToUInt16(Data, 0xA2);
|
|
|
|
|
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0xA2);
|
2019-09-23 23:56:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Game
|
|
|
|
|
{
|
2019-11-16 01:34:18 +00:00
|
|
|
|
get => Data[0xA4];
|
|
|
|
|
set => Data[0xA4] = (byte)value;
|
2019-09-23 23:56:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Gender
|
|
|
|
|
{
|
2019-11-16 01:34:18 +00:00
|
|
|
|
get => Data[0xA5];
|
|
|
|
|
set => Data[0xA5] = (byte)value;
|
2019-09-23 23:56:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-16 01:34:18 +00:00
|
|
|
|
// A6
|
2019-09-23 23:56:47 +00:00
|
|
|
|
public int Language
|
|
|
|
|
{
|
2019-11-16 01:34:18 +00:00
|
|
|
|
get => Data[Offset + 0xA7];
|
|
|
|
|
set => Data[Offset + 0xA7] = (byte)value;
|
2019-09-23 23:56:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string OT
|
|
|
|
|
{
|
2019-11-16 01:34:18 +00:00
|
|
|
|
get => SAV.GetString(Data, 0xB0, 0x1A);
|
|
|
|
|
set => SAV.SetString(value, SAV.OTLength).CopyTo(Data, 0xB0);
|
2019-09-23 23:56:47 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|