1
This commit is contained in:
28
Src/SpotterScope/ISpotterScopeService.cs
Normal file
28
Src/SpotterScope/ISpotterScopeService.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using MemoryPack;
|
||||
using Unity.Mathematics;
|
||||
|
||||
namespace Net.Project.B.World
|
||||
{
|
||||
[MemoryPackable]
|
||||
public partial record SpotterScopeData
|
||||
{
|
||||
public string FileName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public float3 Position { get; set; }
|
||||
public quaternion Rotation { get; set; }
|
||||
}
|
||||
public interface ISpotterScopeService
|
||||
{
|
||||
public string Directory { get; }
|
||||
public UniTask<SpotterScopeData> Snapshot(float3 position, quaternion rotation, int fov);
|
||||
UniTask<IReadOnlyList<SpotterScopeData>> GetSnapshots();
|
||||
public event Action<SpotterScopeData> OnSnapshot;
|
||||
}
|
||||
|
||||
}
|
11
Src/SpotterScope/ISpotterScopeService.cs.meta
Normal file
11
Src/SpotterScope/ISpotterScopeService.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c03b906566a0984cad8e28232e24e95
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
Src/SpotterScope/Net.Project.B.SpotterScope.asmdef
Normal file
18
Src/SpotterScope/Net.Project.B.SpotterScope.asmdef
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "Net.Project.B.SpotterScope",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:d8b63aba1907145bea998dd612889d6b",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": true
|
||||
}
|
7
Src/SpotterScope/Net.Project.B.SpotterScope.asmdef.meta
Normal file
7
Src/SpotterScope/Net.Project.B.SpotterScope.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5087931ed5612e84ca166071da8e35a4
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user