mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
refactor(framework): 重构框架命名空间从GFramework到GWFramework
- 将所有文件中的命名空间GFramework替换为GWFramework - 更新项目文件GFramework.csproj中的包ID和产品名称为GWFramework - 修改解决方案文件GFramework.sln中项目的引用名称为GWFramework - 替换LazyThreadSafetyMode的完整命名空间引用 - 统一调整各模块间相互引用的命名空间前缀
This commit is contained in:
parent
45758aa0fa
commit
b7b67e6256
@ -4,13 +4,13 @@
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<PackageId>GFramework</PackageId>
|
||||
<PackageId>GWFramework</PackageId>
|
||||
<Authors>gewuyou</Authors>
|
||||
<Product>GFramework</Product>
|
||||
<Product>GWFramework</Product>
|
||||
<Description>A game development framework inspired by QFramework</Description>
|
||||
<Copyright>Copyright © 2025</Copyright>
|
||||
<RepositoryUrl>https://github.com/GeWuYou/GFramework</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/GeWuYou/GFramework</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/GeWuYou/GWFramework</RepositoryUrl>
|
||||
<PackageProjectUrl>https://github.com/GeWuYou/GWFramework</PackageProjectUrl>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageTags>game;framework;godot</PackageTags>
|
||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GFramework", "GFramework.csproj", "{9BEDDD6C-DF8B-4E71-9C75-F44EC669ABBD}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GWFramework", "GWFramework.csproj", "{9BEDDD6C-DF8B-4E71-9C75-F44EC669ABBD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -1,6 +1,6 @@
|
||||
# Framework 架构框架
|
||||
|
||||
> 一个基于 CQRS、MVC 和事件驱动的轻量级游戏开发架构框架,专为 Godot 引擎设计。
|
||||
> 一个基于 CQRS、MVC 和事件驱动的轻量级游戏开发架构框架
|
||||
|
||||
## 📖 目录
|
||||
|
||||
|
||||
@ -1,14 +1,13 @@
|
||||
|
||||
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;
|
||||
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;
|
||||
|
||||
|
||||
namespace GFramework.framework.architecture;
|
||||
namespace GWFramework.framework.architecture;
|
||||
|
||||
/// <summary>
|
||||
/// 架构基类,提供系统、模型、工具等组件的注册与管理功能。
|
||||
@ -77,7 +76,7 @@ public abstract class Architecture<T> : IArchitecture where T : Architecture<T>,
|
||||
|
||||
arch._mInited = true;
|
||||
return arch;
|
||||
}, System.Threading.LazyThreadSafetyMode.ExecutionAndPublication);
|
||||
}, LazyThreadSafetyMode.ExecutionAndPublication);
|
||||
|
||||
/// <summary>
|
||||
/// 获取架构实例的受保护静态属性
|
||||
|
||||
@ -1,13 +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 GFramework.framework.architecture;
|
||||
namespace GWFramework.framework.architecture;
|
||||
|
||||
/// <summary>
|
||||
/// 架构接口,定义了应用程序架构的核心功能,包括系统、模型、工具的注册和获取,
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GFramework.framework.architecture;
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.architecture;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
|
||||
namespace GFramework.framework.command;
|
||||
namespace GWFramework.framework.command;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象命令类,实现 ICommand 接口,为具体命令提供基础架构支持
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.command;
|
||||
namespace GWFramework.framework.command;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以发送命令的接口,继承自IBelongToArchitecture接口。
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.query;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.query;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
|
||||
namespace GFramework.framework.command;
|
||||
namespace GWFramework.framework.command;
|
||||
|
||||
/// <summary>
|
||||
/// 命令接口,定义了无返回值命令的基本契约
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
using GFramework.framework.command;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.query;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
using GWFramework.framework.command;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.query;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
|
||||
namespace GFramework.framework.controller;
|
||||
namespace GWFramework.framework.controller;
|
||||
|
||||
/// <summary>
|
||||
/// 控制器接口,定义了控制器需要实现的所有功能契约
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 简单事件类,用于注册、注销和触发无参事件回调
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 泛型事件类,支持一个泛型参数 T 的事件注册、注销与触发。
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// EasyEvents事件管理器类,用于全局事件的注册、获取和管理
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以注册事件的接口,继承自IBelongToArchitecture接口。
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以发送事件的接口,继承自IBelongToArchitecture接口。
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 事件接口,定义了事件注册的基本功能
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 提供注销功能的接口
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// 提供统一注销功能的接口,用于管理需要注销的对象列表
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.extensions;
|
||||
using GWFramework.framework.extensions;
|
||||
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// OrEvent类用于实现事件的或逻辑组合,当任意一个注册的事件触发时,都会触发OrEvent本身
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
/// <summary>
|
||||
/// TypeEventSystem
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.events;
|
||||
namespace GWFramework.framework.events;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.system;
|
||||
using GFramework.framework.utility;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.system;
|
||||
using GWFramework.framework.utility;
|
||||
|
||||
namespace GFramework.framework.extensions;
|
||||
namespace GWFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 提供获取模型对象扩展方法的静态类
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.events;
|
||||
using GWFramework.framework.events;
|
||||
|
||||
namespace GFramework.framework.extensions;
|
||||
namespace GWFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 事件注册扩展类,提供ICanRegisterEvent接口的扩展方法用于注册和注销事件
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GFramework.framework.command;
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.query;
|
||||
using GWFramework.framework.command;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.query;
|
||||
|
||||
namespace GFramework.framework.extensions;
|
||||
namespace GWFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 提供发送命令功能的扩展类
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.events;
|
||||
using GWFramework.framework.events;
|
||||
|
||||
namespace GFramework.framework.extensions;
|
||||
namespace GWFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 提供Or事件扩展方法的静态类
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#if GODOT
|
||||
using Godot;
|
||||
using GFramework.framework.events;
|
||||
using GWFramework.framework.events;
|
||||
|
||||
namespace GFramework.framework.extensions;
|
||||
namespace GWFramework.framework.extensions;
|
||||
|
||||
/// <summary>
|
||||
/// 提供取消注册扩展方法的静态类
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.events;
|
||||
using GWFramework.framework.events;
|
||||
|
||||
namespace GFramework.framework.extensions;
|
||||
namespace GWFramework.framework.extensions;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GFramework.framework.ioc;
|
||||
namespace GWFramework.framework.ioc;
|
||||
|
||||
/// <summary>
|
||||
/// IOC容器类,用于管理对象的注册和获取
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using GFramework.framework.architecture;
|
||||
using GFramework.framework.model;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.architecture;
|
||||
|
||||
namespace GFramework.framework.model;
|
||||
namespace GWFramework.framework.model;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象模型基类,实现IModel接口,提供模型的基本架构支持
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.model;
|
||||
namespace GWFramework.framework.model;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,表示可以获取模型的架构组件。
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.utility;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.utility;
|
||||
|
||||
namespace GFramework.framework.model;
|
||||
namespace GWFramework.framework.model;
|
||||
|
||||
/// <summary>
|
||||
/// 模型接口,定义了模型的基本行为和功能
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using GFramework.framework.events;
|
||||
using GWFramework.framework.events;
|
||||
|
||||
namespace GFramework.framework.property;
|
||||
namespace GWFramework.framework.property;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using GFramework.framework.events;
|
||||
using GWFramework.framework.events;
|
||||
|
||||
namespace GFramework.framework.property;
|
||||
namespace GWFramework.framework.property;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.property;
|
||||
namespace GWFramework.framework.property;
|
||||
|
||||
/// <summary>
|
||||
/// 可绑定属性接口,继承自只读可绑定属性接口,提供可读写的属性绑定功能
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using GFramework.framework.events;
|
||||
using GWFramework.framework.events;
|
||||
|
||||
namespace GFramework.framework.property;
|
||||
namespace GWFramework.framework.property;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.architecture;
|
||||
using GWFramework.framework.architecture;
|
||||
|
||||
namespace GFramework.framework.query;
|
||||
namespace GWFramework.framework.query;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象查询类,提供查询操作的基础实现
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.query;
|
||||
namespace GWFramework.framework.query;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个可以发送查询的接口契约
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.system;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.system;
|
||||
|
||||
namespace GFramework.framework.query;
|
||||
namespace GWFramework.framework.query;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.architecture;
|
||||
using GWFramework.framework.architecture;
|
||||
|
||||
namespace GFramework.framework.rule;
|
||||
namespace GWFramework.framework.rule;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.architecture;
|
||||
using GWFramework.framework.architecture;
|
||||
|
||||
namespace GFramework.framework.rule;
|
||||
namespace GWFramework.framework.rule;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,用于设置架构实例
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using GFramework.framework.architecture;
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.architecture;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.system;
|
||||
namespace GWFramework.framework.system;
|
||||
|
||||
/// <summary>
|
||||
/// 抽象系统基类,实现系统接口的基本功能
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.system;
|
||||
namespace GWFramework.framework.system;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,表示可以获取系统的对象。
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
using GFramework.framework.events;
|
||||
using GFramework.framework.model;
|
||||
using GFramework.framework.rule;
|
||||
using GFramework.framework.utility;
|
||||
using GWFramework.framework.events;
|
||||
using GWFramework.framework.model;
|
||||
using GWFramework.framework.rule;
|
||||
using GWFramework.framework.utility;
|
||||
|
||||
namespace GFramework.framework.system;
|
||||
namespace GWFramework.framework.system;
|
||||
|
||||
/// <summary>
|
||||
/// 系统接口,定义了系统的基本行为和功能
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using GFramework.framework.rule;
|
||||
using GWFramework.framework.rule;
|
||||
|
||||
namespace GFramework.framework.utility;
|
||||
namespace GWFramework.framework.utility;
|
||||
|
||||
/// <summary>
|
||||
/// 定义一个接口,表示可以获取工具类的对象
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace GFramework.framework.utility;
|
||||
namespace GWFramework.framework.utility;
|
||||
|
||||
/// <summary>
|
||||
/// IUtility接口定义了通用工具类的基本契约
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user