mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
refactor(framework): 重构框架命名空间和项目名称
- 将所有 GWFramework 命名空间重命名为 GFramework - 更新解决方案文件中的项目名称和路径引用 - 修改项目文件中的 PackageId、Product 和 URL 配置 - 统一框架内各模块的命名空间前缀为 GFramework - 调整根命名空间配置以匹配新的项目结构
This commit is contained in:
parent
b7b67e6256
commit
da3941d6af
@ -4,21 +4,22 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<PackageId>GWFramework</PackageId>
|
||||
<PackageId>GeWuYou.GFramework</PackageId>
|
||||
<Authors>gewuyou</Authors>
|
||||
<Product>GWFramework</Product>
|
||||
<Product>GeWuYou.GFramework</Product>
|
||||
<Description>A game development framework inspired by QFramework</Description>
|
||||
<Copyright>Copyright © 2025</Copyright>
|
||||
<RepositoryUrl>https://github.com/GeWuYou/GWFramework</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/GeWuYou/GWFramework</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/GeWuYou/GFramework</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/GeWuYou/GFramework</PackageProjectUrl>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageTags>game;framework;godot</PackageTags>
|
||||
<PackageTags>game;framework</PackageTags>
|
||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
<RootNamespace>GFramework</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GWFramework", "GWFramework.csproj", "{9BEDDD6C-DF8B-4E71-9C75-F44EC669ABBD}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GFramework ", "GFramework .csproj", "{9BEDDD6C-DF8B-4E71-9C75-F44EC669ABBD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -1,13 +1,12 @@
|
||||
using GWFramework.framework.command;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.ioc;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.query;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
using GFramework.framework.command;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.ioc;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.query;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
|
||||
|
||||
namespace GWFramework.framework.architecture;
|
||||
namespace GFramework.framework.architecture;
|
||||
|
||||
/// <summary>
|
||||
/// 架构基类,提供系统、模型、工具等组件的注册与管理功能。
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
using GWFramework.framework.command;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.query;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
using GFramework.framework.command;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.query;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
|
||||
namespace GWFramework.framework.architecture;
|
||||
namespace GFramework.framework.architecture;
|
||||
|
||||
/// <summary>
|
||||
/// 架构接口,定义了应用程序架构的核心功能,包括系统、模型、工具的注册和获取,
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
using GWFramework.framework.architecture;
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.architecture;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
|
||||
namespace GWFramework.framework.command;
|
||||
namespace GFramework.framework.command;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象命令类,实现 ICommand 接口,为具体命令提供基础架构支持
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.command;
|
||||
namespace GFramework.framework.command;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以发送命令的接口,继承自IBelongToArchitecture接口。
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.query;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.query;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
|
||||
namespace GWFramework.framework.command;
|
||||
namespace GFramework.framework.command;
|
||||
|
||||
/// <summary>
|
||||
/// 命令接口,定义了无返回值命令的基本契约
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
using GWFramework.framework.command;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.query;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
using GFramework.framework.command;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.query;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
|
||||
namespace GWFramework.framework.controller;
|
||||
namespace GFramework.framework.controller;
|
||||
|
||||
/// <summary>
|
||||
/// 控制器接口,定义了控制器需要实现的所有功能契约
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 简单事件类,用于注册、注销和触发无参事件回调
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 泛型事件类,支持一个泛型参数 T 的事件注册、注销与触发。
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// EasyEvents事件管理器类,用于全局事件的注册、获取和管理
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以注册事件的接口,继承自IBelongToArchitecture接口。
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以发送事件的接口,继承自IBelongToArchitecture接口。
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 事件接口,定义了事件注册的基本功能
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 提供注销功能的接口
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 提供统一注销功能的接口,用于管理需要注销的对象列表
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.extensions;
|
||||
using GFramework.framework.extensions;
|
||||
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// OrEvent类用于实现事件的或逻辑组合,当任意一个注册的事件触发时,都会触发OrEvent本身
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// TypeEventSystem
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.events;
|
||||
namespace GFramework.framework.events;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
|
||||
namespace GWFramework.framework.extensions;
|
||||
namespace GFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 提供获取模型对象扩展方法的静态类
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.events;
|
||||
using GFramework.framework.events;
|
||||
|
||||
namespace GWFramework.framework.extensions;
|
||||
namespace GFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 事件注册扩展类,提供ICanRegisterEvent接口的扩展方法用于注册和注销事件
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GWFramework.framework.command;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.query;
|
||||
using GFramework.framework.command;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.query;
|
||||
|
||||
namespace GWFramework.framework.extensions;
|
||||
namespace GFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 提供发送命令功能的扩展类
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.events;
|
||||
using GFramework.framework.events;
|
||||
|
||||
namespace GWFramework.framework.extensions;
|
||||
namespace GFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 提供Or事件扩展方法的静态类
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.events;
|
||||
using GFramework.framework.events;
|
||||
|
||||
namespace GWFramework.framework.extensions;
|
||||
namespace GFramework.framework.extensions;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GWFramework.framework.ioc;
|
||||
namespace GFramework.framework.ioc;
|
||||
|
||||
/// <summary>
|
||||
/// IOC容器类,用于管理对象的注册和获取
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.architecture;
|
||||
using GFramework.framework.architecture;
|
||||
|
||||
namespace GWFramework.framework.model;
|
||||
namespace GFramework.framework.model;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象模型基类,实现IModel接口,提供模型的基本架构支持
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.model;
|
||||
namespace GFramework.framework.model;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,表示可以获取模型的架构组件。
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.utility;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.utility;
|
||||
|
||||
namespace GWFramework.framework.model;
|
||||
namespace GFramework.framework.model;
|
||||
|
||||
/// <summary>
|
||||
/// 模型接口,定义了模型的基本行为和功能
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using GWFramework.framework.events;
|
||||
using GFramework.framework.events;
|
||||
|
||||
namespace GWFramework.framework.property;
|
||||
namespace GFramework.framework.property;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using GWFramework.framework.events;
|
||||
using GFramework.framework.events;
|
||||
|
||||
namespace GWFramework.framework.property;
|
||||
namespace GFramework.framework.property;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.property;
|
||||
namespace GFramework.framework.property;
|
||||
|
||||
/// <summary>
|
||||
/// 可绑定属性接口,继承自只读可绑定属性接口,提供可读写的属性绑定功能
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using GWFramework.framework.events;
|
||||
using GFramework.framework.events;
|
||||
|
||||
namespace GWFramework.framework.property;
|
||||
namespace GFramework.framework.property;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.architecture;
|
||||
using GFramework.framework.architecture;
|
||||
|
||||
namespace GWFramework.framework.query;
|
||||
namespace GFramework.framework.query;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象查询类,提供查询操作的基础实现
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.query;
|
||||
namespace GFramework.framework.query;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以发送查询的接口契约
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.system;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.system;
|
||||
|
||||
namespace GWFramework.framework.query;
|
||||
namespace GFramework.framework.query;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.architecture;
|
||||
using GFramework.framework.architecture;
|
||||
|
||||
namespace GWFramework.framework.rule;
|
||||
namespace GFramework.framework.rule;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.architecture;
|
||||
using GFramework.framework.architecture;
|
||||
|
||||
namespace GWFramework.framework.rule;
|
||||
namespace GFramework.framework.rule;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,用于设置架构实例
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using GWFramework.framework.architecture;
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.architecture;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.system;
|
||||
namespace GFramework.framework.system;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象系统基类,实现系统接口的基本功能
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.system;
|
||||
namespace GFramework.framework.system;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,表示可以获取系统的对象。
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.utility;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.utility;
|
||||
|
||||
namespace GWFramework.framework.system;
|
||||
namespace GFramework.framework.system;
|
||||
|
||||
/// <summary>
|
||||
/// 系统接口,定义了系统的基本行为和功能
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GWFramework.framework.rule;
|
||||
using GFramework.framework.rule;
|
||||
|
||||
namespace GWFramework.framework.utility;
|
||||
namespace GFramework.framework.utility;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,表示可以获取工具类的对象
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GWFramework.framework.utility;
|
||||
namespace GFramework.framework.utility;
|
||||
|
||||
/// <summary>
|
||||
/// IUtility接口定义了通用工具类的基本契约
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user