This commit is contained in:
CortexCore
2025-04-14 15:39:24 +08:00
parent 5fceb6f885
commit 3f9d9f19ce
50 changed files with 683 additions and 41 deletions

View File

@@ -8,7 +8,7 @@ using Unity.Mathematics;
namespace Net.Project.B.World
{
[MemoryPackable]
public partial record SpotterScopeData
public partial record SnapshotData
{
public string FileName { get; set; }
public string Name { get; set; }
@@ -17,12 +17,12 @@ namespace Net.Project.B.World
public float3 Position { get; set; }
public quaternion Rotation { get; set; }
}
public interface ISpotterScopeService
public interface ISnapshotService
{
public string Directory { get; }
public UniTask<SpotterScopeData> Snapshot(float3 position, quaternion rotation, int fov);
UniTask<IReadOnlyList<SpotterScopeData>> GetSnapshots();
public event Action<SpotterScopeData> OnSnapshot;
public UniTask<SnapshotData> Snapshot(float3 position, quaternion rotation, int fov);
UniTask<IReadOnlyList<SnapshotData>> GetSnapshots();
public event Action<SnapshotData> OnSnapshot;
}
}

View File

@@ -1,5 +1,5 @@
{
"name": "Net.Project.B.SpotterScope",
"name": "Net.Project.B.Snapshot",
"rootNamespace": "",
"references": [
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",