refactor(core): 将System命名空间重命名为Systems

- 更新所有GFramework.Core.Abstractions.System引用为GFramework.Core.Abstractions.Systems
- 重命名GFramework.Core/System目录为GFramework.Core/Systems
- 重命名GFramework.Core.Tests/System目录为GFramework.Core.Tests/Systems
- 更新所有相关using语句和命名空间声明
- 修复测试文件中的命名空间引用
- 添加全局using引用GFramework.Core.Systems
This commit is contained in:
GeWuYou 2026-03-10 08:42:53 +08:00
parent fb14d7122c
commit 027a214479
35 changed files with 39 additions and 45 deletions

View File

@ -1,6 +1,6 @@
using GFramework.Core.Abstractions.Lifecycle;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using Microsoft.Extensions.DependencyInjection;

View File

@ -3,7 +3,7 @@ using GFramework.Core.Abstractions.Environment;
using GFramework.Core.Abstractions.Events;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.Query;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using Mediator;
using ICommand = GFramework.Core.Abstractions.Command.ICommand;

View File

@ -1,5 +1,5 @@
using GFramework.Core.Abstractions.Rule;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using Microsoft.Extensions.DependencyInjection;
namespace GFramework.Core.Abstractions.IoC;

View File

@ -1,4 +1,4 @@
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
namespace GFramework.Core.Abstractions.State;

View File

@ -2,7 +2,7 @@ using GFramework.Core.Abstractions.Architecture;
using GFramework.Core.Abstractions.Lifecycle;
using GFramework.Core.Abstractions.Rule;
namespace GFramework.Core.Abstractions.System;
namespace GFramework.Core.Abstractions.Systems;
/// <summary>
/// 系统接口,定义了系统的基本行为和功能

View File

@ -5,7 +5,7 @@ using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Abstractions.Environment;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.Query;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using GFramework.Core.Architectures;
using GFramework.Core.Command;

View File

@ -5,7 +5,7 @@ using GFramework.Core.Abstractions.Events;
using GFramework.Core.Abstractions.IoC;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.Query;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using GFramework.Core.Architectures;
using GFramework.Core.Command;

View File

@ -1,5 +1,5 @@
using GFramework.Core.Tests.Model;
using GFramework.Core.Tests.System;
using GFramework.Core.Tests.Systems;
namespace GFramework.Core.Tests.Architecture;

View File

@ -5,7 +5,7 @@ using GFramework.Core.Abstractions.Events;
using GFramework.Core.Abstractions.IoC;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.Query;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using GFramework.Core.Architectures;
using GFramework.Core.Command;

View File

@ -1,13 +1,11 @@
using System.Reflection;
using GFramework.Core.Abstractions.Bases;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using GFramework.Core.IoC;
using GFramework.Core.Logging;
using GFramework.Core.Model;
using GFramework.Core.System;
using NUnit.Framework;
namespace GFramework.Core.Tests.Architecture;

View File

@ -2,7 +2,7 @@ using GFramework.Core.Abstractions.Architecture;
using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Abstractions.Lifecycle;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using GFramework.Core.Architectures;
using Microsoft.Extensions.DependencyInjection;

View File

@ -1,5 +1,5 @@
using GFramework.Core.Tests.Model;
using GFramework.Core.Tests.System;
using GFramework.Core.Tests.Systems;
namespace GFramework.Core.Tests.Architecture;

View File

@ -17,4 +17,5 @@ global using System.Linq;
global using System.Threading;
global using System.Threading.Tasks;
global using NUnit.Framework;
global using NUnit.Compatibility;
global using NUnit.Compatibility;
global using GFramework.Core.Systems;

View File

@ -2,8 +2,7 @@ using System.Reflection;
using GFramework.Core.Abstractions.Bases;
using GFramework.Core.IoC;
using GFramework.Core.Logging;
using GFramework.Core.Tests.System;
using NUnit.Framework;
using GFramework.Core.Tests.Systems;
namespace GFramework.Core.Tests.IoC;

View File

@ -1,8 +1,6 @@
using System;
using System.IO;
using GFramework.Core.Abstractions.Logging;
using GFramework.Core.Logging;
using NUnit.Framework;
namespace GFramework.Core.Tests.Logging;
@ -161,7 +159,7 @@ public class ConsoleLoggerTests
_logger.Error("Line 3");
var output = _stringWriter.ToString();
var lines = output.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
var lines = output.Split([System.Environment.NewLine], StringSplitOptions.RemoveEmptyEntries);
Assert.That(lines.Length, Is.EqualTo(3));
Assert.That(lines[0], Does.Contain("INFO"));

View File

@ -2,7 +2,7 @@ using GFramework.Core.Abstractions.Architecture;
using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.Rule;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using GFramework.Core.Architectures;
using GFramework.Core.Extensions;

View File

@ -1,7 +1,7 @@
using System.Reflection;
using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Abstractions.State;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Architectures;
using GFramework.Core.Command;
using GFramework.Core.Environment;

View File

@ -1,9 +1,9 @@
using GFramework.Core.Abstractions.Architecture;
using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Abstractions.Lifecycle;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
namespace GFramework.Core.Tests.System;
namespace GFramework.Core.Tests.Systems;
/// <summary>
/// 异步测试系统,实现 ISystem 和 IAsyncInitializable

View File

@ -1,8 +1,8 @@
using GFramework.Core.Abstractions.Architecture;
using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
namespace GFramework.Core.Tests.System;
namespace GFramework.Core.Tests.Systems;
/// <summary>
/// 测试系统类实现了ISystem接口

View File

@ -1,8 +1,7 @@
using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Tests.Architecture;
using GFramework.Core.Tests.Model;
using GFramework.Core.Tests.System;
using NUnit.Framework;
using GFramework.Core.Tests.Systems;
using NUnit.Framework.Legacy;
namespace GFramework.Core.Tests.Tests;

View File

@ -3,7 +3,7 @@ using GFramework.Core.Architectures;
using GFramework.Core.Tests.Architecture;
using GFramework.Core.Tests.Events;
using GFramework.Core.Tests.Model;
using GFramework.Core.Tests.System;
using GFramework.Core.Tests.Systems;
using NUnit.Framework.Legacy;
namespace GFramework.Core.Tests.Tests;

View File

@ -5,7 +5,7 @@ using GFramework.Core.Abstractions.IoC;
using GFramework.Core.Abstractions.Lifecycle;
using GFramework.Core.Abstractions.Logging;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using GFramework.Core.Environment;
using GFramework.Core.Extensions;

View File

@ -5,7 +5,7 @@ using GFramework.Core.Abstractions.Events;
using GFramework.Core.Abstractions.IoC;
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.Query;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
using Mediator;
using ICommand = GFramework.Core.Abstractions.Command.ICommand;

View File

@ -1,6 +1,6 @@
using GFramework.Core.Abstractions.Model;
using GFramework.Core.Abstractions.Rule;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Abstractions.Utility;
namespace GFramework.Core.Extensions;

View File

@ -1,7 +1,7 @@
using GFramework.Core.Abstractions.Bases;
using GFramework.Core.Abstractions.IoC;
using GFramework.Core.Abstractions.Logging;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Logging;
using GFramework.Core.Rule;
using Mediator;

View File

@ -1,6 +1,6 @@
using System.Diagnostics;
using GFramework.Core.Abstractions.Pool;
using GFramework.Core.System;
using GFramework.Core.Systems;
namespace GFramework.Core.Pool;

View File

@ -1,10 +1,10 @@
using GFramework.Core.Abstractions.Enums;
using GFramework.Core.Abstractions.Logging;
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Core.Logging;
using GFramework.Core.Rule;
namespace GFramework.Core.System;
namespace GFramework.Core.Systems;
/// <summary>
/// 抽象系统基类,实现系统接口的基本功能

View File

@ -1,4 +1,4 @@
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
namespace GFramework.Ecs.Arch.Abstractions;

View File

@ -1,7 +1,6 @@
using Arch.Core;
using GFramework.Core.Extensions;
using GFramework.Core.System;
using GFramework.Ecs.Arch.Abstractions;
using GFramework.Core.Systems;
using ArchSys = Arch.System;
namespace GFramework.Ecs.Arch;

View File

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
namespace GFramework.Game.Abstractions.Scene;

View File

@ -1,4 +1,4 @@
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
namespace GFramework.Game.Abstractions.Setting;

View File

@ -1,4 +1,4 @@
using GFramework.Core.Abstractions.System;
using GFramework.Core.Abstractions.Systems;
using GFramework.Game.Abstractions.Enums;
namespace GFramework.Game.Abstractions.UI;

View File

@ -14,7 +14,7 @@
using GFramework.Core.Abstractions.Logging;
using GFramework.Core.Extensions;
using GFramework.Core.Logging;
using GFramework.Core.System;
using GFramework.Core.Systems;
using GFramework.Game.Abstractions.Enums;
using GFramework.Game.Abstractions.Scene;

View File

@ -1,5 +1,5 @@
using GFramework.Core.Extensions;
using GFramework.Core.System;
using GFramework.Core.Systems;
using GFramework.Game.Abstractions.Setting;
using GFramework.Game.Setting.Events;

View File

@ -1,7 +1,7 @@
using GFramework.Core.Abstractions.Logging;
using GFramework.Core.Extensions;
using GFramework.Core.Logging;
using GFramework.Core.System;
using GFramework.Core.Systems;
using GFramework.Game.Abstractions.Enums;
using GFramework.Game.Abstractions.UI;