mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-08-26 04:04:12 -05:00
Added stub hax validations.
This commit is contained in:
@@ -150,6 +150,12 @@ namespace PkmnFoundations.Structures
|
||||
return new GtsRecord4(Save());
|
||||
}
|
||||
|
||||
public bool Validate()
|
||||
{
|
||||
// todo: a. legitimacy check, and b. check that pkm data matches metadata
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool CanTrade(GtsRecord4 other)
|
||||
{
|
||||
if (Species != other.RequestedSpecies) return false;
|
||||
@@ -194,7 +200,7 @@ namespace PkmnFoundations.Structures
|
||||
byte hour = (byte)((timestamp >> 0x18) & 0xff);
|
||||
byte minute = (byte)((timestamp >> 0x10) & 0xff);
|
||||
byte second = (byte)((timestamp >> 0x08) & 0xff);
|
||||
//byte fractional = (byte)(timestamp & 0xff);
|
||||
//byte fractional = (byte)(timestamp & 0xff); // always 0
|
||||
|
||||
// allow ArgumentOutOfRangeExceptions to escape
|
||||
return new DateTime(year, month, day, hour, minute, second);
|
||||
|
||||
Reference in New Issue
Block a user