From 73ee5e5afd9ca90542fb064ba987cf38890aa669 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 10 Nov 2018 20:59:55 -0800 Subject: [PATCH] Add personal info structure update changes One field added to indicate the GO species or whatever; the 891/892 meltan values match here. Might not be only for GO species translation, might be for fetching models idk --- PKHeX.Core/PersonalInfo/PersonalInfoGG.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 PKHeX.Core/PersonalInfo/PersonalInfoGG.cs diff --git a/PKHeX.Core/PersonalInfo/PersonalInfoGG.cs b/PKHeX.Core/PersonalInfo/PersonalInfoGG.cs new file mode 100644 index 000000000..94bf68f4b --- /dev/null +++ b/PKHeX.Core/PersonalInfo/PersonalInfoGG.cs @@ -0,0 +1,13 @@ +using System; + +namespace PKHeX.Core +{ + /// + /// class with values from the LGPE games. + /// + public class PersonalInfoGG : PersonalInfoSM + { + public PersonalInfoGG(byte[] data) : base(data) { } + public int GoSpecies { get => BitConverter.ToUInt16(Data, 0x48); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x48); } + } +}