mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
新增 `IArchitectureOptions` 接口及其实现类 `FunctionalArchitectureOptions`, 用于控制架构行为,如阶段验证严格性和延迟注册许可。 同时为 `Architecture<T>` 类添加虚属性 `Options`,默认返回功能型选项实例。 修改了阶段转换验证、系统/模型注册时机检查逻辑,以支持通过选项动态控制其行为。 调整部分代码格式以提升可读性。
17 lines
399 B
C#
17 lines
399 B
C#
namespace GFramework.Core.architecture;
|
|
|
|
/// <summary>
|
|
/// 架构可配置选项接口
|
|
/// </summary>
|
|
public interface IArchitectureOptions
|
|
{
|
|
/// <summary>
|
|
/// 是否严格验证阶段转换
|
|
/// </summary>
|
|
bool StrictPhaseValidation { get; }
|
|
|
|
/// <summary>
|
|
/// 是否允许在 Ready 阶段后注册系统/模型
|
|
/// </summary>
|
|
bool AllowLateRegistration { get; }
|
|
} |