forked from Shardstone/trail-into-darkness
First commit on my server, yey!
This commit is contained in:
16
Packages/com.jovian.savesystem/Runtime/Model/SaveEnvelope.cs
Normal file
16
Packages/com.jovian.savesystem/Runtime/Model/SaveEnvelope.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Jovian.SaveSystem {
|
||||
/// <summary>
|
||||
/// On-disk wrapper that pairs minimal metadata with the game data payload.
|
||||
/// Payload is stored as JToken so it remains readable JSON when using JsonSaveSerializer.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public sealed class SaveEnvelope {
|
||||
public int version;
|
||||
public long timestampUtc;
|
||||
public SaveSlotType slotType;
|
||||
public JToken payload;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ffa4184b4e99e3947ac73fa747d346d7
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Jovian.SaveSystem {
|
||||
public enum SaveFormat {
|
||||
Json,
|
||||
Binary
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a118c9ab8d89ad546ad67e8dc1a71c98
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Jovian.SaveSystem {
|
||||
public enum SaveSlotType {
|
||||
Manual,
|
||||
Auto,
|
||||
Quick
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f1e478bd3e3fec43a55f4efec51577c
|
||||
Reference in New Issue
Block a user