Exemplo n.º 1
0
        /// <summary>
        /// 创建隐藏物体完成事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的隐藏物体完成事件。</returns>
        public static HideItemCompleteEventArgs Create(GameFramework.Item.HideItemCompleteEventArgs e)
        {
            HideItemCompleteEventArgs hideItemCompleteEventArgs = ReferencePool.Acquire <HideItemCompleteEventArgs>();

            hideItemCompleteEventArgs.ItemId        = e.ItemId;
            hideItemCompleteEventArgs.ItemAssetName = e.ItemAssetName;
            hideItemCompleteEventArgs.ItemGroup     = e.ItemGroup;
            hideItemCompleteEventArgs.UserData      = e.UserData;
            return(hideItemCompleteEventArgs);
        }
 private void OnHideItemComplete(object sender, GameFramework.Item.HideItemCompleteEventArgs e)
 {
     m_EventComponent.Fire(this, HideItemCompleteEventArgs.Create(e));
 }