copy from github
This commit is contained in:
10
Runtime/ISaveSerializer.cs
Normal file
10
Runtime/ISaveSerializer.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Jovian.SaveSystem {
|
||||
/// <summary>
|
||||
/// Converts typed data to and from byte arrays.
|
||||
/// Implementations define the format (JSON, binary, etc.).
|
||||
/// </summary>
|
||||
public interface ISaveSerializer {
|
||||
byte[] Serialize<TData>(TData data);
|
||||
TData Deserialize<TData>(byte[] payload);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user