using System; namespace PKHeX.Core { /// /// class with values from the games. /// 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); } } }