mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
feat(GFramework.Ecs.Arch): 注册模块自身到容器中
- 在 ArchEcsModule 初始化时注册模块自身到容器 - 移除不必要的空行以保持代码整洁
This commit is contained in:
parent
bca92e52a3
commit
4257d58f86
@ -46,6 +46,9 @@ public sealed class ArchEcsModule : IArchEcsModule
|
||||
|
||||
_container = container;
|
||||
|
||||
// 注册模块自身
|
||||
container.RegisterPlurality(this);
|
||||
|
||||
// 创建并注册 World
|
||||
_world = World.Create();
|
||||
container.Register(_world);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user