mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 将所有小写的命名空间导入更正为首字母大写格式 - 统一 GFramework 框架的命名空间引用规范 - 修复 core、ecs、godot 等模块的命名空间导入错误 - 标准化文档示例代码中的 using 语句格式 - 确保所有文档中的命名空间引用保持一致性 - 更新 global using 语句以匹配正确的命名空间格式
21 lines
747 B
C#
21 lines
747 B
C#
using GFramework.Core.Abstractions.Events;
|
||
using GFramework.Core.Events;
|
||
|
||
namespace GFramework.Core.Extensions;
|
||
|
||
/// <summary>
|
||
/// 提供Or事件扩展方法的静态类
|
||
/// </summary>
|
||
public static class OrEventExtensions
|
||
{
|
||
/// <summary>
|
||
/// 创建一个OrEvent实例,将当前事件与指定事件进行逻辑或运算组合
|
||
/// </summary>
|
||
/// <param name="self">当前的IEasyEvent事件实例</param>
|
||
/// <param name="e">要与当前事件进行或运算的另一个IEasyEvent事件实例</param>
|
||
/// <returns>返回一个新的OrEvent实例,表示两个事件的或运算结果</returns>
|
||
public static OrEvent Or(this IEvent self, IEvent e)
|
||
{
|
||
return new OrEvent().Or(self).Or(e);
|
||
}
|
||
} |