mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 16:55:57 +08:00
17 lines
497 B
C#
17 lines
497 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
namespace GFramework.Core.Abstractions.Events;
|
|
|
|
/// <summary>
|
|
/// 事件接口,定义了事件注册的基本功能
|
|
/// </summary>
|
|
public interface IEvent
|
|
{
|
|
/// <summary>
|
|
/// 注册事件处理函数
|
|
/// </summary>
|
|
/// <param name="onEvent">事件触发时要执行的回调函数</param>
|
|
/// <returns>用于取消注册的句柄对象</returns>
|
|
IUnRegister Register(Action onEvent);
|
|
} |