mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 在ArchitectureContext中添加ECS世界和系统调度器支持 - 添加IEcsWorld和IEcsSystem接口定义 - 实现EcsWorld、EcsSystemBase和EcsSystemRunner核心类 - 添加Position和Velocity示例组件及MovementSystem示例 - 创建ECS使用示例代码 - 将多个项目的TargetFramework从netstandard2.0升级到netstandard2.1 - 添加Arch和Arch.System包依赖到核心项目 - 在测试项目中添加ECS相关接口的模拟实现
20 lines
506 B
C#
20 lines
506 B
C#
using GFramework.Core.Abstractions.system;
|
||
|
||
namespace GFramework.Core.Abstractions.ecs;
|
||
|
||
/// <summary>
|
||
/// ECS系统接口,继承自ISystem以集成到现有架构
|
||
/// </summary>
|
||
public interface IEcsSystem : ISystem
|
||
{
|
||
/// <summary>
|
||
/// 系统优先级,数值越小越先执行
|
||
/// </summary>
|
||
int Priority { get; }
|
||
|
||
/// <summary>
|
||
/// 每帧更新
|
||
/// </summary>
|
||
/// <param name="deltaTime">帧间隔时间(秒)</param>
|
||
void Update(float deltaTime);
|
||
} |