From e23a53c3d4ccb418f00f4a0ce04abbbeda148ede Mon Sep 17 00:00:00 2001 From: GwWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sun, 4 Jan 2026 22:50:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(template):=20=E6=B7=BB=E5=8A=A0=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8=E7=B1=BB=E6=A8=A1=E6=9D=BF=E5=B9=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加了控制器类模板文件 ControllerTemplate.cs - 在项目文件中添加 Godot 目录的排除规则 - 更新项目引用和编译排除规则 - 统一项目配置中的路径格式 - 添加控制器模板的元数据信息 - [skip ci] --- GFramework.csproj | 3 +++ .../Node/ControllerTemplate.cs | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Godot/script_templates/Node/ControllerTemplate.cs 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() + { + + } +} +