mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-16 09:08:02 +00:00
f97417fe85
cuts down memory footprint by quite a bit (bool[] is 4bytes per bool)
22 lines
641 B
C#
22 lines
641 B
C#
using System;
|
|
|
|
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// <see cref="PersonalInfo"/> class with values from the LGPE games.
|
|
/// </summary>
|
|
public class PersonalInfoGG : PersonalInfoSM
|
|
{
|
|
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
|
|
}
|
|
|
|
public int GoSpecies { get => BitConverter.ToUInt16(Data, 0x48); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x48); }
|
|
}
|
|
}
|