diff --git a/GFramework.csproj b/GFramework.csproj index 5c9bc32..09f1d65 100644 --- a/GFramework.csproj +++ b/GFramework.csproj @@ -51,6 +51,7 @@ + @@ -85,6 +86,7 @@ + @@ -105,6 +107,7 @@ + diff --git a/Godot/script_templates/Node/ControllerTemplate.cs b/Godot/script_templates/Node/ControllerTemplate.cs new file mode 100644 index 0000000..f65a766 --- /dev/null +++ b/Godot/script_templates/Node/ControllerTemplate.cs @@ -0,0 +1,22 @@ +// meta-name: 控制器类模板 +// meta-description: 负责管理场景的生命周期和架构关联 +using Godot; +using GFramework.Core.Abstractions.controller; +using GFramework.SourceGenerators.Abstractions.logging; +using GFramework.SourceGenerators.Abstractions.rule; + + +[ContextAware] +[Log] +public partial class _CLASS_ :_BASE_,IController +{ + /// + /// 节点准备就绪时的回调方法 + /// 在节点添加到场景树后调用 + /// + public override void _Ready() + { + + } +} +