mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-25 16:20:08 -05:00
Updated TrainerProfilePlaza fields
according to Mythra's research.
This commit is contained in:
parent
e669938e7a
commit
531475b3db
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user