update packages
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
namespace EscapeRoomEngine.Engine.Runtime.Measurements
|
||||||
|
{
|
||||||
|
public interface IMeasurementStorage
|
||||||
|
{
|
||||||
|
public void Save(MeasurementCollection measurements);
|
||||||
|
public MeasurementCollection Load(int key);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6c93e87219e64bc3ad8263da8109e51c
|
||||||
|
timeCreated: 1670750698
|
||||||
13
Assets/Engine/Runtime/Measurements/MeasurementCollection.cs
Normal file
13
Assets/Engine/Runtime/Measurements/MeasurementCollection.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace EscapeRoomEngine.Engine.Runtime.Measurements
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public struct MeasurementCollection
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The module id is a
|
||||||
|
/// </summary>
|
||||||
|
public int moduleId;
|
||||||
|
}
|
||||||
|
}
|
||||||
15
Assets/Engine/Runtime/Measurements/PuzzleMeasurement.cs
Normal file
15
Assets/Engine/Runtime/Measurements/PuzzleMeasurement.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
|
|
||||||
|
namespace EscapeRoomEngine.Engine.Runtime.Measurements
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public struct PuzzleMeasurement
|
||||||
|
{
|
||||||
|
public void a()
|
||||||
|
{
|
||||||
|
new BinaryFormatter().Serialize(new MemoryStream(), this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 91f5682ec16f4437a278802918c86b57
|
||||||
|
timeCreated: 1670752063
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
namespace EscapeRoomEngine.Engine.Runtime.Measurements
|
|
||||||
{
|
|
||||||
public struct PuzzleMeasurements
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
25
Assets/Engine/Runtime/Measurements/SQLiteStorage.cs
Normal file
25
Assets/Engine/Runtime/Measurements/SQLiteStorage.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using System.Runtime.Serialization.Formatters.Binary;
|
||||||
|
|
||||||
|
namespace EscapeRoomEngine.Engine.Runtime.Measurements
|
||||||
|
{
|
||||||
|
// ReSharper disable once InconsistentNaming
|
||||||
|
public class SQLiteStorage : IMeasurementStorage
|
||||||
|
{
|
||||||
|
private BinaryFormatter _formatter;
|
||||||
|
|
||||||
|
public SQLiteStorage()
|
||||||
|
{
|
||||||
|
_formatter = new BinaryFormatter();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Save(MeasurementCollection measurements)
|
||||||
|
{
|
||||||
|
_formatter.Serialize();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MeasurementCollection Load(int key)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
3
Assets/Engine/Runtime/Measurements/SQLiteStorage.cs.meta
Normal file
3
Assets/Engine/Runtime/Measurements/SQLiteStorage.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 28258214110d473e903e377b0b989a0e
|
||||||
|
timeCreated: 1670752473
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.dbrizov.naughtyattributes": "https://github.com/dbrizov/NaughtyAttributes.git#upm",
|
"com.dbrizov.naughtyattributes": "https://github.com/dbrizov/NaughtyAttributes.git#upm",
|
||||||
"com.unity.ide.rider": "3.0.16",
|
"com.unity.ide.rider": "3.0.17",
|
||||||
"com.unity.ide.visualstudio": "2.0.16",
|
"com.unity.ide.visualstudio": "2.0.17",
|
||||||
"com.unity.ide.vscode": "1.2.5",
|
"com.unity.ide.vscode": "1.2.5",
|
||||||
"com.unity.render-pipelines.universal": "13.1.9",
|
"com.unity.render-pipelines.universal": "13.1.9",
|
||||||
"com.unity.test-framework": "1.1.33",
|
"com.unity.test-framework": "1.1.33",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.rider": {
|
"com.unity.ide.rider": {
|
||||||
"version": "3.0.16",
|
"version": "3.0.17",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.ide.visualstudio": {
|
"com.unity.ide.visualstudio": {
|
||||||
"version": "2.0.16",
|
"version": "2.0.17",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user