gewuyou ff553977e3 chore(license): 补齐 Apache-2.0 文件头治理
- 新增许可证文件头检查与修复脚本

- 补充维护者手动修复 PR 工作流和 CI 校验

- 更新贡献指南中的文件头说明

- 补齐仓库维护源码和配置文件的许可证声明
2026-05-03 19:39:49 +08:00

25 lines
639 B
C#

// Copyright (c) 2025-2026 GeWuYou
// SPDX-License-Identifier: Apache-2.0
using System.Runtime.InteropServices;
namespace GFramework.Ecs.Arch.Components;
/// <summary>
/// 位置组件,用于表示实体在二维空间中的坐标位置。
/// </summary>
/// <param name="x">X轴坐标值</param>
/// <param name="y">Y轴坐标值</param>
[StructLayout(LayoutKind.Sequential)]
public struct Position(float x, float y)
{
/// <summary>
/// 获取X轴坐标值。
/// </summary>
public float X { get; set; } = x;
/// <summary>
/// 获取Y轴坐标值。
/// </summary>
public float Y { get; set; } = y;
}