copy from github
This commit is contained in:
16
Runtime/Model/SaveEnvelope.cs
Normal file
16
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;
|
||||
}
|
||||
}
|
||||
2
Runtime/Model/SaveEnvelope.cs.meta
Normal file
2
Runtime/Model/SaveEnvelope.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ffa4184b4e99e3947ac73fa747d346d7
|
||||
6
Runtime/Model/SaveFormat.cs
Normal file
6
Runtime/Model/SaveFormat.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Jovian.SaveSystem {
|
||||
public enum SaveFormat {
|
||||
Json,
|
||||
Binary
|
||||
}
|
||||
}
|
||||
2
Runtime/Model/SaveFormat.cs.meta
Normal file
2
Runtime/Model/SaveFormat.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a118c9ab8d89ad546ad67e8dc1a71c98
|
||||
7
Runtime/Model/SaveSlotType.cs
Normal file
7
Runtime/Model/SaveSlotType.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Jovian.SaveSystem {
|
||||
public enum SaveSlotType {
|
||||
Manual,
|
||||
Auto,
|
||||
Quick
|
||||
}
|
||||
}
|
||||
2
Runtime/Model/SaveSlotType.cs.meta
Normal file
2
Runtime/Model/SaveSlotType.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f1e478bd3e3fec43a55f4efec51577c
|
||||
Reference in New Issue
Block a user