mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 定义了IPageBehavior接口,提供UI页面的生命周期方法如OnEnter、OnExit、OnPause、OnResume等 - 创建了IUiFactory接口用于创建UI页面实例,以及IUiPage接口定义页面基本操作 - 添加了IUiPageEnterParam接口用于定义页面跳转参数数据结构 - 实现了IUiRouter接口提供页面栈管理功能,支持Push、Pop、Replace、Clear等操作 - 创建了UI切换处理器相关接口和实现,包括IUiTransitionHandler和UiTransitionPipeline - 添加了UI切换事件系统,支持BeforeChange和AfterChange两个执行阶段 - 实现了日志记录处理器LoggingTransitionHandler用于记录UI切换信息 - 定义了多种UI切换策略枚举如UiTransitionPolicy、UiTransitionType等 - 提供了UI注册表接口用于管理UI实例的注册和获取功能
19 lines
532 B
C#
19 lines
532 B
C#
namespace GFramework.Game.Abstractions.ui;
|
||
|
||
/// <summary>
|
||
/// UI根节点接口,定义了UI页面容器的基本操作
|
||
/// </summary>
|
||
public interface IUiRoot
|
||
{
|
||
/// <summary>
|
||
/// 向UI根节点添加子页面
|
||
/// </summary>
|
||
/// <param name="child">要添加的UI页面子节点</param>
|
||
void AddUiPage(IPageBehavior child);
|
||
|
||
/// <summary>
|
||
/// 从UI根节点移除子页面
|
||
/// </summary>
|
||
/// <param name="child">要移除的UI页面子节点</param>
|
||
void RemoveUiPage(IPageBehavior child);
|
||
} |