GeWuYou af76e0ab0b refactor(ecs): 移除Arch ECS模块及相关组件和系统
- 删除Position组件结构体定义
- 删除Velocity组件结构体定义
- 删除MovementSystem移动系统实现
- 移除ArchEcsModule ECS模块管理器
- 删除ArchSystemAdapter适配器基类
- 从ServiceModuleManager中移除ECS模块注册逻辑
- 从ArchitectureProperties中移除EnableEcs配置选项
- 删除ECS相关的单元测试文件
- 从项目文件中移除Arch和Arch.System包引用
- 从解决方案文件中移除ECS相关项目引用
- 更新项目配置文件中的目标框架和测试项目属性
2026-03-08 19:45:36 +08:00

21 lines
622 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Runtime.InteropServices;
namespace GFramework.Ecs.Arch.components;
/// <summary>
/// 速度结构体,用于表示二维空间中实体的瞬时速度向量
/// 包含X轴和Y轴的速度分量通常用于物理计算和运动系统
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Velocity(float x, float y)
{
/// <summary>
/// X轴速度分量单位为距离单位/秒
/// </summary>
public float X { get; set; } = x;
/// <summary>
/// Y轴速度分量单位为距离单位/秒
/// </summary>
public float Y { get; set; } = y;
}