From 820cdcf0fae05b08c745744429ec82fae804ea20 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:34:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(storage):=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AD=98=E5=82=A8=E6=A8=A1=E5=9D=97=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 FileStorage 中添加 System.IO 和 System.Text 引用 - 在 GodotFileStorage 中整合所有必要的命名空间引用 - 统一并发和序列化接口的依赖注入方式 - 添加 Godot 特定的 FileAccess 类型别名 - 优化 Godot 扩展功能的引用结构 --- GFramework.Game/Storage/FileStorage.cs | 6 +++++- GFramework.Godot/Storage/GodotFileStorage.cs | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/GFramework.Game/Storage/FileStorage.cs b/GFramework.Game/Storage/FileStorage.cs index e1140c6..383c029 100644 --- a/GFramework.Game/Storage/FileStorage.cs +++ b/GFramework.Game/Storage/FileStorage.cs @@ -1,4 +1,8 @@ -using GFramework.Core.Concurrency; +using System.IO; +using System.Text; +using GFramework.Core.Abstractions.Concurrency; +using GFramework.Core.Abstractions.Serializer; +using GFramework.Core.Concurrency; using GFramework.Game.Abstractions.Storage; namespace GFramework.Game.Storage; diff --git a/GFramework.Godot/Storage/GodotFileStorage.cs b/GFramework.Godot/Storage/GodotFileStorage.cs index ca46db7..1256520 100644 --- a/GFramework.Godot/Storage/GodotFileStorage.cs +++ b/GFramework.Godot/Storage/GodotFileStorage.cs @@ -1,6 +1,12 @@ +using System.IO; +using System.Text; using GFramework.Core.Abstractions.Concurrency; using GFramework.Core.Abstractions.Serializer; using GFramework.Core.Abstractions.Storage; +using GFramework.Core.Concurrency; +using GFramework.Godot.Extensions; +using Godot; +using FileAccess = Godot.FileAccess; namespace GFramework.Godot.Storage;