2016-07-03 20:41:50 +00:00
|
|
|
|
using System.Linq;
|
2016-07-03 03:24:17 +00:00
|
|
|
|
|
|
|
|
|
namespace PKHeX
|
|
|
|
|
{
|
2016-07-03 20:41:50 +00:00
|
|
|
|
public class PersonalInfoG4 : PersonalInfoG3
|
2016-07-03 03:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
public PersonalInfoG4(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
if (data.Length != SIZE_G4)
|
|
|
|
|
return;
|
|
|
|
|
Data = data;
|
|
|
|
|
|
|
|
|
|
// Unpack TMHM & Tutors
|
|
|
|
|
TMHM = getBits(Data.Skip(0x1C).Take(0x0D).ToArray());
|
|
|
|
|
TypeTutors = new bool[0]; // not stored in personal
|
|
|
|
|
}
|
|
|
|
|
public override byte[] Write()
|
|
|
|
|
{
|
|
|
|
|
setBits(TMHM).CopyTo(Data, 0x28);
|
2016-07-03 20:41:50 +00:00
|
|
|
|
// setBits(TypeTutors).CopyTo(Data, 0x38);
|
2016-07-03 03:24:17 +00:00
|
|
|
|
return Data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|