Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52bda43e3c | ||
|
|
d89ea4899b |
@@ -11,12 +11,12 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.test-framework": "1.1.33",
|
"com.unity.test-framework": "1.1.33",
|
||||||
"com.cneicy.shrink-context-app-adapter": "file:../../..",
|
"com.cneicy.shrink-context-app-adapter": "file:../../..",
|
||||||
"com.cneicy.shrink-app-starter-basic": "0.1.1",
|
"com.cneicy.shrink-app-starter-basic": "0.2.0",
|
||||||
"com.cneicy.shrink-command": "0.2.0",
|
"com.cneicy.shrink-command": "0.2.0",
|
||||||
"com.cneicy.shrink-command-integration-app": "0.1.0",
|
"com.cneicy.shrink-command-integration-app": "0.1.1",
|
||||||
"com.cneicy.shrink-datasaver-integration-app": "0.1.0",
|
"com.cneicy.shrink-datasaver-integration-app": "0.1.1",
|
||||||
"com.cneicy.shrink-network": "0.2.0",
|
"com.cneicy.shrink-network": "0.2.1",
|
||||||
"com.cneicy.shrink-network-integration-app": "0.1.0",
|
"com.cneicy.shrink-network-integration-app": "0.1.1",
|
||||||
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#7c0f199fe0d3fc528024488ccd671e6c7b27745b"
|
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#7c0f199fe0d3fc528024488ccd671e6c7b27745b"
|
||||||
},
|
},
|
||||||
"testables": [
|
"testables": [
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ namespace ShrinkContext.AppAdapter.Editor
|
|||||||
private ShrinkContextBenchmarkReport? _benchmarkReport;
|
private ShrinkContextBenchmarkReport? _benchmarkReport;
|
||||||
private string? _benchmarkError;
|
private string? _benchmarkError;
|
||||||
|
|
||||||
[MenuItem("ShrinkSDK/Cordis/诊断与组合")]
|
[MenuItem("ShrinkSDK/上下文/诊断与组合")]
|
||||||
public static void ShowWindow()
|
public static void ShowWindow()
|
||||||
{
|
{
|
||||||
var window = GetWindow<ShrinkContextDiagnosticsWindow>("Cordis Diagnostics");
|
var window = GetWindow<ShrinkContextDiagnosticsWindow>("Context 诊断与组合");
|
||||||
window.minSize = new Vector2(720f, 520f);
|
window.minSize = new Vector2(720f, 520f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ namespace ShrinkContext.AppAdapter.Editor
|
|||||||
if (_profile == null)
|
if (_profile == null)
|
||||||
{
|
{
|
||||||
EditorGUILayout.HelpBox(
|
EditorGUILayout.HelpBox(
|
||||||
"未选择 Composition Profile。可通过 Assets/Create/ShrinkSDK/Cordis/Composition Profile 创建。",
|
"未选择组合配置。可通过 Assets/Create/ShrinkSDK/上下文/组合配置创建。",
|
||||||
MessageType.Info);
|
MessageType.Info);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ ShrinkApp ↔ ShrinkContext 的桥接层:提供当前默认的 ContextLoader
|
|||||||
| `ShrinkAppLoaderHost` | 加载器驱动的 ShrinkApp 宿主:发现安装器(注入覆盖可测试)、应用声明式组合、经 `ShrinkContextLoader` 增量协调、运行中按模块开关 |
|
| `ShrinkAppLoaderHost` | 加载器驱动的 ShrinkApp 宿主:发现安装器(注入覆盖可测试)、应用声明式组合、经 `ShrinkContextLoader` 增量协调、运行中按模块开关 |
|
||||||
| `ShrinkAppCompositionProfile` | ScriptableObject/JSON 组合文档:描述条目启用、显式排除、isolate 与 intercept;组件工厂仍由代码目录注册 |
|
| `ShrinkAppCompositionProfile` | ScriptableObject/JSON 组合文档:描述条目启用、显式排除、isolate 与 intercept;组件工厂仍由代码目录注册 |
|
||||||
| `ShrinkAppLoaderBootstrapper` | `hostingMode == ContextLoader` 时自动创建常驻宿主,应用 `Resources/ShrinkAppComposition`,并把服务容器接回 `ShrinkApp.Services` |
|
| `ShrinkAppLoaderBootstrapper` | `hostingMode == ContextLoader` 时自动创建常驻宿主,应用 `Resources/ShrinkAppComposition`,并把服务容器接回 `ShrinkApp.Services` |
|
||||||
| `ShrinkContextDiagnosticsWindow` | `ShrinkSDK/Cordis/诊断与组合`:查看运行时 fiber/依赖/事务、编辑 Profile JSON、读取可选的 ModFramework 常驻统计并运行容量基准 |
|
| `ShrinkContextDiagnosticsWindow` | `ShrinkSDK/上下文/诊断与组合`:查看运行时 fiber/依赖/事务、编辑 Profile JSON、读取可选的 ModFramework 常驻统计并运行容量基准 |
|
||||||
|
|
||||||
## 启用方式
|
## 启用方式
|
||||||
|
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ namespace ShrinkContext.AppAdapter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[CreateAssetMenu(fileName = DefaultResourceName, menuName = "ShrinkSDK/Cordis/Composition Profile")]
|
[CreateAssetMenu(fileName = DefaultResourceName, menuName = "ShrinkSDK/上下文/组合配置")]
|
||||||
public sealed class ShrinkAppCompositionProfile : ScriptableObject
|
public sealed class ShrinkAppCompositionProfile : ScriptableObject
|
||||||
{
|
{
|
||||||
public const string DefaultResourceName = "ShrinkAppComposition";
|
public const string DefaultResourceName = "ShrinkAppComposition";
|
||||||
|
|||||||
+4
-3
@@ -1,14 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "com.cneicy.shrink-context-app-adapter",
|
"name": "com.cneicy.shrink-context-app-adapter",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"displayName": "ShrinkContext - ShrinkApp Adapter",
|
"displayName": "ShrinkContext - ShrinkApp Adapter",
|
||||||
"description": "把现有 IShrinkAppModuleInstaller 包装为 ShrinkContext 组件:依赖缺失改为等待而非抛错,模块激活由响应式余效应驱动。",
|
"description": "把现有 IShrinkAppModuleInstaller 包装为 ShrinkContext 组件:依赖缺失改为等待而非抛错,模块激活由响应式余效应驱动。",
|
||||||
"unity": "2022.3",
|
"unity": "2022.3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.cneicy.shrink-context-core": "0.1.0",
|
"com.cneicy.shrink-context-core": "0.1.0",
|
||||||
"com.cneicy.shrink-app-core": "0.1.1",
|
"com.cneicy.shrink-app-core": "0.1.2",
|
||||||
"com.cneicy.shrink-eventbus": "2.0.0",
|
"com.cneicy.shrink-eventbus": "2.0.0",
|
||||||
"com.cysharp.unitask": "2.5.10"
|
"com.cysharp.unitask": "2.5.10",
|
||||||
|
"com.unity.modules.jsonserialize": "1.0.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"context",
|
"context",
|
||||||
|
|||||||
Reference in New Issue
Block a user