mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-22 10:23:09 +00:00
92fe440208
no temp array on write (unused in pkhex anyways) no length checking on read
18 lines
605 B
C#
18 lines
605 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// <see cref="PersonalInfo"/> class with values from the <see cref="GameVersion.GG"/> games.
|
|
/// </summary>
|
|
public class PersonalInfoGG : PersonalInfoSM
|
|
{
|
|
public PersonalInfoGG(byte[] data) : base(data)
|
|
{
|
|
TMHM = GetBits(Data.AsSpan(0x28, 8)); // only 60 TMs used
|
|
TypeTutors = GetBits(Data.AsSpan(0x38, 1)); // at most 8 flags used
|
|
}
|
|
|
|
public int GoSpecies { get => BitConverter.ToUInt16(Data, 0x48); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x48); }
|
|
}
|
|
}
|