From 63a6c2e6f0f2a6c1c978512e4522d4d1474f6981 Mon Sep 17 00:00:00 2001
From: GeWuYou <95328647+GeWuYou@users.noreply.github.com>
Date: Sat, 21 Mar 2026 21:08:47 +0800
Subject: [PATCH] =?UTF-8?q?refactor(abstractions):=20=E7=A7=BB=E9=99=A4?=
=?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=9A=84Key=E5=B1=9E=E6=80=A7=E5=A3=B0?=
=?UTF-8?q?=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 从LockInfo结构体移除StructLayout特性
- 从ISceneBehavior接口移除重复的Key属性声明
- 从IUiPageBehavior接口移除重复的Key属性声明
- 简化LockInfo类定义减少不必要的using引用
---
GFramework.Core.Abstractions/Concurrency/LockInfo.cs | 3 ---
GFramework.Game.Abstractions/Scene/ISceneBehavior.cs | 6 ------
GFramework.Game.Abstractions/UI/IUiPageBehavior.cs | 8 --------
3 files changed, 17 deletions(-)
diff --git a/GFramework.Core.Abstractions/Concurrency/LockInfo.cs b/GFramework.Core.Abstractions/Concurrency/LockInfo.cs
index 2f8cc1f..0e06da0 100644
--- a/GFramework.Core.Abstractions/Concurrency/LockInfo.cs
+++ b/GFramework.Core.Abstractions/Concurrency/LockInfo.cs
@@ -11,14 +11,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-using System.Runtime.InteropServices;
-
namespace GFramework.Core.Abstractions.Concurrency;
///
/// 锁信息(用于调试)
///
-[StructLayout(LayoutKind.Auto)]
public readonly struct LockInfo
{
///
diff --git a/GFramework.Game.Abstractions/Scene/ISceneBehavior.cs b/GFramework.Game.Abstractions/Scene/ISceneBehavior.cs
index f56f5d8..63974c0 100644
--- a/GFramework.Game.Abstractions/Scene/ISceneBehavior.cs
+++ b/GFramework.Game.Abstractions/Scene/ISceneBehavior.cs
@@ -21,12 +21,6 @@ namespace GFramework.Game.Abstractions.Scene;
///
public interface ISceneBehavior : IRoute
{
- ///
- /// 获取场景的唯一标识符。
- /// 该成员显式细化了 在场景路由中的语义,用于区分不同的场景实例。
- ///
- new string Key { get; }
-
///
/// 获取场景的原始对象。
///
diff --git a/GFramework.Game.Abstractions/UI/IUiPageBehavior.cs b/GFramework.Game.Abstractions/UI/IUiPageBehavior.cs
index 51e693a..17a3e68 100644
--- a/GFramework.Game.Abstractions/UI/IUiPageBehavior.cs
+++ b/GFramework.Game.Abstractions/UI/IUiPageBehavior.cs
@@ -46,14 +46,6 @@ public interface IUiPageBehavior : IRoute
/// 页面视图实例。
object View { get; }
-
- ///
- /// 获取页面的唯一键值,并显式细化 在 UI 路由中的语义。
- ///
- /// 返回当前对象的键标识符
- new string Key { get; }
-
-
///
/// 获取页面是否处于活动状态
///