mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 将架构服务重构为模块化设计,引入ServiceModuleManager统一管理 - 新增EventBusModule、CommandExecutorModule、QueryExecutorModule等核心服务模块 - 实现ECS模块支持,可配置启用Entity Component System功能 - 在架构初始化过程中集成模块注册、初始化和销毁流程 - 更新架构属性配置,添加EnableEcs开关控制ECS功能启用 - 优化服务获取方式,从直接依赖改为通过容器动态获取 - 移除架构上下文中的ECS相关实现代码,统一由ECS模块管理
17 lines
455 B
C#
17 lines
455 B
C#
using GFramework.Core.Abstractions.ioc;
|
|
using GFramework.Core.Abstractions.properties;
|
|
|
|
namespace GFramework.Core.Abstractions.architecture;
|
|
|
|
public interface IServiceModuleManager
|
|
{
|
|
void RegisterModule(IServiceModule module);
|
|
|
|
void RegisterBuiltInModules(IIocContainer container, ArchitectureProperties properties);
|
|
|
|
IReadOnlyList<IServiceModule> GetModules();
|
|
|
|
Task InitializeAllAsync(bool asyncMode);
|
|
|
|
ValueTask DestroyAllAsync();
|
|
} |