Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7de22c85fb
|
||
|
|
52b92d3657
|
No files matched your search
@@ -5,7 +5,7 @@
|
|||||||
<AssemblyName>ShrinkRuntime.Abstractions</AssemblyName>
|
<AssemblyName>ShrinkRuntime.Abstractions</AssemblyName>
|
||||||
<RootNamespace>ShrinkSDK.Runtime</RootNamespace>
|
<RootNamespace>ShrinkSDK.Runtime</RootNamespace>
|
||||||
<PackageId>ShrinkSDK.Runtime.Abstractions</PackageId>
|
<PackageId>ShrinkSDK.Runtime.Abstractions</PackageId>
|
||||||
<Version>0.1.0</Version>
|
<Version>0.2.0</Version>
|
||||||
<Description>Engine-neutral ShrinkSDK runtime contracts.</Description>
|
<Description>Engine-neutral ShrinkSDK runtime contracts.</Description>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,3 +5,13 @@ Unity 和普通 .NET/Godot 宿主共用的平台服务合同,包含日志、
|
|||||||
- Unity:安装 `com.cneicy.shrink-runtime-abstractions`。
|
- Unity:安装 `com.cneicy.shrink-runtime-abstractions`。
|
||||||
- .NET/Godot:安装 `ShrinkSDK.Runtime.Abstractions`。
|
- .NET/Godot:安装 `ShrinkSDK.Runtime.Abstractions`。
|
||||||
- NuGet 打包工程位于 `DotNet~/ShrinkSDK.Runtime.Abstractions.csproj`。
|
- NuGet 打包工程位于 `DotNet~/ShrinkSDK.Runtime.Abstractions.csproj`。
|
||||||
|
|
||||||
|
## 可复用能力
|
||||||
|
|
||||||
|
<!-- shrink:capabilities -->
|
||||||
|
Capability: 跨宿主日志、主线程派发、时钟、路径、截图与生命周期合同
|
||||||
|
Aliases: 平台 宿主 Unity Godot dotnet
|
||||||
|
Limits: 默认 InlineDispatcher 不提供 Unity 线程切换;线程语义由宿主实现
|
||||||
|
Extension: ShrinkRuntimeServices.Configure 与平台接口
|
||||||
|
Evidence: [ShrinkRuntimeServices](Runtime/ShrinkRuntimeServices.cs)
|
||||||
|
<!-- /shrink:capabilities -->
|
||||||
@@ -21,6 +21,11 @@ namespace ShrinkSDK.Runtime
|
|||||||
bool TryPost(Action action);
|
bool TryPost(Action action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public interface IShrinkDeferredMainThreadDispatcher
|
||||||
|
{
|
||||||
|
bool TryPostDeferred(Action action);
|
||||||
|
}
|
||||||
|
|
||||||
public interface IShrinkClock
|
public interface IShrinkClock
|
||||||
{
|
{
|
||||||
DateTimeOffset UtcNow { get; }
|
DateTimeOffset UtcNow { get; }
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.cneicy.shrink-runtime-abstractions",
|
"name": "com.cneicy.shrink-runtime-abstractions",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"displayName": "ShrinkSDK Runtime Abstractions",
|
"displayName": "ShrinkSDK Runtime Abstractions",
|
||||||
"description": "Engine-neutral runtime services and CodeGen marker contracts.",
|
"description": "Engine-neutral runtime services and CodeGen marker contracts.",
|
||||||
"unity": "2022.3"
|
"unity": "2022.3"
|
||||||
|
|||||||
Reference in new issue
Block a user