mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
- 删除Position组件结构体定义 - 删除Velocity组件结构体定义 - 删除MovementSystem移动系统实现 - 移除ArchEcsModule ECS模块管理器 - 删除ArchSystemAdapter适配器基类 - 从ServiceModuleManager中移除ECS模块注册逻辑 - 从ArchitectureProperties中移除EnableEcs配置选项 - 删除ECS相关的单元测试文件 - 从项目文件中移除Arch和Arch.System包引用 - 从解决方案文件中移除ECS相关项目引用 - 更新项目配置文件中的目标框架和测试项目属性
21 lines
622 B
C#
21 lines
622 B
C#
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;
|
||
} |