/// <summary> /// 创建显示物体时加载依赖资源事件。 /// </summary> /// <param name="e">内部事件。</param> /// <returns>创建的显示物体时加载依赖资源事件。</returns> public static ShowItemDependencyAssetEventArgs Create(GameFramework.Item.ShowItemDependencyAssetEventArgs e) { ShowItemInfo showItemInfo = (ShowItemInfo)e.UserData; ShowItemDependencyAssetEventArgs showItemDependencyAssetEventArgs = ReferencePool.Acquire <ShowItemDependencyAssetEventArgs>(); showItemDependencyAssetEventArgs.ItemId = e.ItemId; showItemDependencyAssetEventArgs.ItemLogicType = showItemInfo.ItemLogicType; showItemDependencyAssetEventArgs.ItemAssetName = e.ItemAssetName; showItemDependencyAssetEventArgs.ItemGroupName = e.ItemGroupName; showItemDependencyAssetEventArgs.DependencyAssetName = e.DependencyAssetName; showItemDependencyAssetEventArgs.LoadedCount = e.LoadedCount; showItemDependencyAssetEventArgs.TotalCount = e.TotalCount; showItemDependencyAssetEventArgs.UserData = showItemInfo.UserData; return(showItemDependencyAssetEventArgs); }
private void OnShowItemDependencyAsset(object sender, GameFramework.Item.ShowItemDependencyAssetEventArgs e) { m_EventComponent.Fire(this, ShowItemDependencyAssetEventArgs.Create(e)); }