コード例 #1
0
        /// <summary>
        /// 创建隐藏实体完成事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的隐藏实体完成事件。</returns>
        public static HideEntityCompleteEventArgs Create(GameFramework.Entity.HideEntityCompleteEventArgs e)
        {
            HideEntityCompleteEventArgs hideEntityCompleteEventArgs = ReferencePool.Acquire <HideEntityCompleteEventArgs>();

            hideEntityCompleteEventArgs.EntityId        = e.EntityId;
            hideEntityCompleteEventArgs.EntityAssetName = e.EntityAssetName;
            hideEntityCompleteEventArgs.EntityGroup     = e.EntityGroup;
            hideEntityCompleteEventArgs.UserData        = e.UserData;
            return(hideEntityCompleteEventArgs);
        }
コード例 #2
0
 private void OnHideEntityComplete(object sender, GameFramework.Entity.HideEntityCompleteEventArgs e)
 {
     m_EventComponent.Fire(this, HideEntityCompleteEventArgs.Create(e));
 }