GFramework/GFramework.Game.Abstractions/ui/IUiPageBehaviorProvider.cs
GeWuYou c931cb7d66 feat(ui): 添加CanvasItem页面行为和Godot UI工厂
- 实现CanvasItemPageBehavior类支持所有继承自CanvasItem的节点
- 添加OnEnter、OnExit、OnPause、OnResume、OnHide、OnShow页面生命周期方法
- 创建GodotUiFactory工厂类用于创建UI页面实例
- 实现Create方法根据UI键创建页面行为实例
- 重命名IUiPageProvider为IUiPageBehaviorProvider接口
- 更新接口方法GetPage返回页面行为实例的描述
2026-01-15 12:33:19 +08:00

13 lines
338 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.

namespace GFramework.Game.Abstractions.ui;
/// <summary>
/// UI页面行为提供者接口用于获取页面行为实例
/// </summary>
public interface IUiPageBehaviorProvider
{
/// <summary>
/// 获取页面行为实例
/// </summary>
/// <returns>页面行为接口实例</returns>
IPageBehavior GetPage();
}