//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 loyalsoft. All rights reserved. // Homepage: http://www.game7000.com/ // Feedback: http://www.game7000.com/ //------------------------------------------------------------ namespace GameFramework.UI { /// /// 关闭界面完成事件。 /// public sealed class CloseUIFormCompleteEventArgs : GameFrameworkEventArgs { /// /// 初始化关闭界面完成事件的新实例。 /// public CloseUIFormCompleteEventArgs() { SerialId = 0; UIFormAssetName = null; UIGroup = null; UserData = null; } /// /// 获取界面序列编号。 /// public int SerialId { get; private set; } /// /// 获取界面资源名称。 /// public string UIFormAssetName { get; private set; } /// /// 获取界面所属的界面组。 /// public IUIGroup UIGroup { get; private set; } /// /// 获取用户自定义数据。 /// public object UserData { get; private set; } /// /// 创建关闭界面完成事件。 /// /// 界面序列编号。 /// 界面资源名称。 /// 界面所属的界面组。 /// 用户自定义数据。 /// 创建的关闭界面完成事件。 public static CloseUIFormCompleteEventArgs Create(int serialId, string uiFormAssetName, IUIGroup uiGroup, object userData) { CloseUIFormCompleteEventArgs closeUIFormCompleteEventArgs = ReferencePool.Acquire(); closeUIFormCompleteEventArgs.SerialId = serialId; closeUIFormCompleteEventArgs.UIFormAssetName = uiFormAssetName; closeUIFormCompleteEventArgs.UIGroup = uiGroup; closeUIFormCompleteEventArgs.UserData = userData; return closeUIFormCompleteEventArgs; } /// /// 清理关闭界面完成事件。 /// public override void Clear() { SerialId = 0; UIFormAssetName = null; UIGroup = null; UserData = null; } } }