Updated TrainerProfilePlaza fields

according to Mythra's research.
This commit is contained in:
Megan Edwards 2024-02-11 02:36:54 -05:00
parent e669938e7a
commit 531475b3db

View File

@ -26,7 +26,6 @@ namespace PkmnFoundations.Wfc
public int PID;
public byte[] Data; // 164 bytes
// todo: These 4 values are basically big guesses. Fact check.
// todo: Add more fields
public Versions Version
{
@ -44,19 +43,13 @@ namespace PkmnFoundations.Wfc
}
}
public byte Country
public byte[] MacAddress
{
get
{
return Data[0x4c];
}
}
public byte Region
{
get
{
return Data[0x4e];
byte[] result = new byte[6];
Array.Copy(Data, 0x04, result, 0, 0x06);
return result;
}
}
@ -76,6 +69,32 @@ namespace PkmnFoundations.Wfc
}
}
// todo: favourite pokemon
public TrainerGenders Gender
{
get
{
return (TrainerGenders)Data[0x48];
}
}
public byte Country
{
get
{
return Data[0x4c];
}
}
public byte Region
{
get
{
return Data[0x4e];
}
}
public TrainerProfilePlaza Clone()
{
return new TrainerProfilePlaza(PID, Data.ToArray());