mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 删除Position组件结构体定义 - 删除Velocity组件结构体定义 - 删除MovementSystem移动系统实现 - 移除ArchEcsModule ECS模块管理器 - 删除ArchSystemAdapter适配器基类 - 从ServiceModuleManager中移除ECS模块注册逻辑 - 从ArchitectureProperties中移除EnableEcs配置选项 - 删除ECS相关的单元测试文件 - 从项目文件中移除Arch和Arch.System包引用 - 从解决方案文件中移除ECS相关项目引用 - 更新项目配置文件中的目标框架和测试项目属性
21 lines
614 B
C#
21 lines
614 B
C#
using System.Runtime.CompilerServices;
|
|
using GFramework.Core.Abstractions.architecture;
|
|
|
|
namespace GFramework.Ecs.Arch;
|
|
|
|
/// <summary>
|
|
/// Arch ECS 模块自动初始化器
|
|
/// 使用 ModuleInitializer 特性在程序启动时自动注册模块
|
|
/// </summary>
|
|
public static class ArchModuleInitializer
|
|
{
|
|
/// <summary>
|
|
/// 模块初始化方法,在程序启动时自动调用
|
|
/// </summary>
|
|
[ModuleInitializer]
|
|
public static void Initialize()
|
|
{
|
|
// 注册 Arch ECS 模块工厂
|
|
ArchitectureModuleRegistry.Register(() => new ArchEcsModule(enabled: true));
|
|
}
|
|
} |