Beispiel #1
0
        /// <summary>
        /// 创建资源应用失败事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的资源应用失败事件。</returns>
        public static ResourceApplyFailureEventArgs Create(GameFramework.Resource.ResourceApplyFailureEventArgs e)
        {
            ResourceApplyFailureEventArgs resourceApplyFailureEventArgs = ReferencePool.Acquire <ResourceApplyFailureEventArgs>();

            resourceApplyFailureEventArgs.Name             = e.Name;
            resourceApplyFailureEventArgs.ResourcePackPath = e.ResourcePackPath;
            resourceApplyFailureEventArgs.ErrorMessage     = e.ErrorMessage;
            return(resourceApplyFailureEventArgs);
        }
 private void OnResourceApplyFailure(object sender, GameFramework.Resource.ResourceApplyFailureEventArgs e)
 {
     m_EventComponent.Fire(this, ResourceApplyFailureEventArgs.Create(e));
 }