Files
ShrinkGodot/README.md
T
cneicy e355bbfd35
Publish NuGet packages / publish (push) Successful in 3m23s
chore(godot): align dependencies and document host capabilities
2026-09-29 10:14:51 +08:00

20 lines
799 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ShrinkSDK.Godot
Godot 4.6 C# 宿主与平台服务适配包。
```powershell
dotnet add package ShrinkSDK.Godot --version 0.1.0
```
主场景根节点继承 `ShrinkGodotHost`,在 `_Ready` 中先调用 `base._Ready()`,再调用 `StartAppAsync()`。CodeGen 由依赖模块的 `buildTransitive` 自动启用。
## 可复用能力
<!-- shrink:capabilities -->
Capability: Godot 宿主生命周期、主线程派发与网络每帧处理预算
Aliases: Godot 主线程 派发 队列 预算
Limits: Godot C# 需要 .NET SDK;Unity 编译输入不包含此宿主,符号查询使用 --project Godot/Packages/ShrinkSDK.Godot/ShrinkSDK.Godot.csproj
Extension: ShrinkGodotHost.NetworkDispatchBudgetPerFrame 与 TryPost
Evidence: [ShrinkGodotHost](ShrinkGodotHost.cs)
<!-- /shrink:capabilities -->