2018-11-10 20:59:55 -08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-09-23 16:56:47 -07:00
|
|
|
|
/// <see cref="PersonalInfo"/> class with values from the <see cref="GameVersion.GG"/> games.
|
2018-11-10 20:59:55 -08:00
|
|
|
|
/// </summary>
|
|
|
|
|
public class PersonalInfoGG : PersonalInfoSM
|
|
|
|
|
{
|
2019-01-06 22:21:25 -08:00
|
|
|
|
public PersonalInfoGG(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
if (data.Length != SIZE)
|
|
|
|
|
return;
|
|
|
|
|
Data = data;
|
|
|
|
|
|
|
|
|
|
TMHM = GetBits(Data, 0x28, 8); // only 60 TMs used
|
|
|
|
|
TypeTutors = GetBits(Data, 0x38, 1); // at most 8 flags used
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-10 20:59:55 -08:00
|
|
|
|
public int GoSpecies { get => BitConverter.ToUInt16(Data, 0x48); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x48); }
|
|
|
|
|
}
|
|
|
|
|
}
|