feat: update Godot integration and coordinated package dependencies

This commit is contained in:
cneicy committed 2026-11-06 19:13:11 +08:00
1 parent fd3788e2ce
commit 0127fae182
5 files changed
+49 -24

No files matched your search

+9 -1
View File
@@ -5,6 +5,7 @@ using System.Linq;
using ShrinkCommand.Integration.App;
using ShrinkCommand.Integration;
using ShrinkContext.AppAdapter;
using ShrinkDataSaver;
using ShrinkDataSaver.Integration.App;
using ShrinkDataSaver.Integration;
using ShrinkNetwork.Integration.App;
@@ -39,13 +40,20 @@ namespace ShrinkApp.Starter.Basic
}
public static void Configure(ShrinkAppLoaderHost host)
{
Configure(host, null);
}
public static void Configure(ShrinkAppLoaderHost host,
ShrinkDataSaverRuntimeConfig? dataSaverRuntimeConfig)
{
if (host == null)
throw new System.ArgumentNullException(nameof(host));
RegisterOrReplace(host, "shrink.network", static () => new ShrinkNetworkAppComponent());
RegisterOrReplace(host, "shrink.command", static () => new ShrinkCommandAppComponent());
RegisterOrReplace(host, "shrink.datasaver", static () => new ShrinkDataSaverAppComponent());
RegisterOrReplace(host, "shrink.datasaver",
() => new ShrinkDataSaverAppComponent(dataSaverRuntimeConfig));
host.AddModuleComponent("shrink.integration.command-network",
static () => new ShrinkCommandNetworkIntegrationComponent());
host.AddModuleComponent("shrink.integration.command-eventbus",