Beispiel #1
0
        /// <summary>
        /// 创建显示实体更新事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的显示实体更新事件。</returns>
        public static ShowEntityUpdateEventArgs Create(GameFramework.Entity.ShowEntityUpdateEventArgs e)
        {
            ShowEntityInfo            showEntityInfo            = (ShowEntityInfo)e.UserData;
            ShowEntityUpdateEventArgs showEntityUpdateEventArgs = ReferencePool.Acquire <ShowEntityUpdateEventArgs>();

            showEntityUpdateEventArgs.EntityId        = e.EntityId;
            showEntityUpdateEventArgs.EntityLogicType = showEntityInfo.EntityLogicType;
            showEntityUpdateEventArgs.EntityAssetName = e.EntityAssetName;
            showEntityUpdateEventArgs.EntityGroupName = e.EntityGroupName;
            showEntityUpdateEventArgs.Progress        = e.Progress;
            showEntityUpdateEventArgs.UserData        = showEntityInfo.UserData;
            return(showEntityUpdateEventArgs);
        }
Beispiel #2
0
 private void OnShowEntityUpdate(object sender, GameFramework.Entity.ShowEntityUpdateEventArgs e)
 {
     m_EventComponent.Fire(this, ShowEntityUpdateEventArgs.Create(e));
 }