mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-24 04:06:48 +08:00
- 将 `Architecture.Destroy` 方法标记为 `virtual`,允许子类重写销毁逻辑 - 在 `AbstractArchitecture` 中引入 Godot 生命周期绑定机制,通过锚点节点自动管理架构销毁 - 新增 `IGodotArchitectureExtension` 接口,支持模块化的扩展组件安装与卸载 - 实现 `InstallGodotExtension` 方法,用于异步加载并挂载扩展节点至架构根节点 - 改进 `ArchitectureAnchorNode` 的回调绑定逻辑,增加重复绑定警告提示 - 优化注释内容,提升代码可读性与维护性
12 lines
273 B
C#
12 lines
273 B
C#
using GFramework.Core.architecture;
|
|
using Godot;
|
|
|
|
namespace GFramework.Godot.architecture;
|
|
|
|
public interface IGodotArchitectureExtension<T> where T : Architecture<T>, new()
|
|
{
|
|
Node Node { get; }
|
|
void OnAttach(Architecture<T> architecture);
|
|
void OnDetach();
|
|
}
|