mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 19:24:29 +08:00
- 将多个项目的TargetFramework从netstandard2.0更新为net8.0;net9.0;net10.0 - 优化Directory.Build.props中的注释和配置说明 - 添加缺失的using System;引用 - 调整资源加载系统命名空间从GFramework.Godot.system到GFramework.Godot.assets - 修正ILogger.cs中的异常消息格式 - 移除BindableProperty.cs中多余的可空断言操作符
27 lines
724 B
C#
27 lines
724 B
C#
using GFramework.Core.Abstractions.architecture;
|
||
using GFramework.Core.architecture;
|
||
using Godot;
|
||
|
||
namespace GFramework.Godot.architecture;
|
||
|
||
/// <summary>
|
||
/// Godot模块接口,定义了Godot引擎中模块的基本行为和属性
|
||
/// </summary>
|
||
public interface IGodotModule : IArchitectureModule
|
||
{
|
||
/// <summary>
|
||
/// 获取模块关联的Godot节点
|
||
/// </summary>
|
||
Node Node { get; }
|
||
|
||
/// <summary>
|
||
/// 当模块被附加到架构时调用
|
||
/// </summary>
|
||
/// <param name="architecture">要附加到的架构实例</param>
|
||
void OnAttach(Architecture architecture);
|
||
|
||
/// <summary>
|
||
/// 当模块从架构分离时调用
|
||
/// </summary>
|
||
void OnDetach();
|
||
} |