mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-11 12:14:30 +08:00
- 新增输入绑定 DTO、设备上下文和 UI 语义桥接契约。 - 实现 Game 默认输入绑定存储、动作映射和 UI 分发桥接。 - 落地 Godot InputMap 适配、测试覆盖与配套文档。 - 更新 ai-plan 恢复点、worktree 映射与采用入口。
25 lines
690 B
C#
25 lines
690 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
namespace GFramework.Game.Abstractions.Input;
|
|
|
|
/// <summary>
|
|
/// 描述一组动作绑定的可持久化快照。
|
|
/// </summary>
|
|
public sealed class InputBindingSnapshot
|
|
{
|
|
/// <summary>
|
|
/// 初始化一个输入绑定快照。
|
|
/// </summary>
|
|
/// <param name="actions">动作绑定集合。</param>
|
|
public InputBindingSnapshot(IReadOnlyList<InputActionBinding> actions)
|
|
{
|
|
Actions = actions ?? Array.Empty<InputActionBinding>();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取动作绑定集合。
|
|
/// </summary>
|
|
public IReadOnlyList<InputActionBinding> Actions { get; }
|
|
}
|