mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-25 08:04:27 -05:00
Added missing ctor to BinarySerializableBase.
This commit is contained in:
parent
bc87fe7be8
commit
e96e7839e4
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user