Added missing ctor to BinarySerializableBase.

This commit is contained in:
Megan Edwards 2023-07-13 00:48:00 -04:00
parent bc87fe7be8
commit e96e7839e4

View File

@ -18,6 +18,12 @@ namespace PkmnFoundations.Support
{
}
public BinarySerializableBase(SerializationInfo info, StreamingContext context)
{
byte[] data = (byte[])info.GetValue("data", typeof(byte[]));
Load(data, 0);
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("data", Save());