GFramework/GFramework.Core/Extensions/OrEventExtensions.cs
GeWuYou fb14d7122c docs(style): 更新文档中的命名空间导入格式
- 将所有小写的命名空间导入更正为首字母大写格式
- 统一 GFramework 框架的命名空间引用规范
- 修复 core、ecs、godot 等模块的命名空间导入错误
- 标准化文档示例代码中的 using 语句格式
- 确保所有文档中的命名空间引用保持一致性
- 更新 global using 语句以匹配正确的命名空间格式
2026-03-10 07:18:49 +08:00

21 lines
747 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
}