public virtual void OnLoadComplete() { Logger.Debug(string.Empty); var eventObject = new LoadCompleteEvent(); OnDebugEvent(eventObject, InterfaceGuids.IDebugLoadCompleteEvent2Guid); }
public void MarkLoaded(LoadCompleteEvent e, PreparedLoaderNode node, [JoinBy(typeof(AssetGroupComponent))] BundlesRequestNode bundlesRequestNode) { string bundleName = node.assetBundleLoading.Info.BundleName; AssetBundle assetBundle = node.assetBundleLoading.AssetBundleDiskCacheRequest.AssetBundle; bundlesRequestNode.assetBundlesLoadData.LoadingBundles.Remove(node.assetBundleLoading.Info); bundlesRequestNode.assetBundlesLoadData.LoadedBundles.Add(node.assetBundleLoading.Info, assetBundle); }
public void HandleBundleLoadComplete(LoadCompleteEvent e, AssetBundleLoadingNode node, [JoinAll] AssetBundleDatabaseNode dbNode) { AssetBundleLoadingComponent assetBundleLoading = node.assetBundleLoading; AssetBundleDiskCache assetBundleDiskCache = dbNode.assetBundleDiskCache.AssetBundleDiskCache; AssetBundleInfo info = node.assetBundleLoading.Info; if (!info.IsCached) { this.LogDownloadInfoIfBundleIsBig(assetBundleLoading, AssetBundleNaming.GetAssetBundleUrl(assetBundleDiskCache.BaseUrl, info.Filename), info.Size); info.IsCached = true; } this.ReleaseLoadingChannel(node.Entity); }
private void OnLoaded(LoadCompleteEvent e) { if (string.IsNullOrWhiteSpace(OsuBotTransferClient.Target_User_Name)) { //尝试给用户提示 if (TryGetUserName(out var user_name) && !string.IsNullOrWhiteSpace(user_name)) { temp_user_name = user_name; IO.CurrentIO.WriteColor($"[PublicOsuBotTransferPlugin]Are you \"{user_name}\"? Current PublicOsuBotTransferPlugin's option Target_User_Name isn't set." + $"You can type 'osu_bot auto' to set up automatically.\nor you can type 'osu_bot name \"your_user_name\" ' to set name up explicitly", ConsoleColor.Yellow); } } }
private void DefaultPlugin_onLoadComplete(LoadCompleteEvent @event) { MainHost = @event.Host; MainFilters = MainHost.Filters; MainSources = MainHost.Sources; MainSource = MainHost.SourceWrapper; MainClient = MainHost.ClientWrapper; MainMessager = MainHost.Messages; MainClients = MainHost.Clients; //config load Config = new PluginConfigurationManager(this); Config.AddItem(srcBili); Config.AddItem(srcTwitch); Config.AddItem(clientOSU); }
public void UrlLoadComplete(LoadCompleteEvent e, NewsItemWithUINode newsItem) { WWWLoader loader = (WWWLoader)newsItem.Entity.GetComponent <UrlLoaderComponent>().Loader; Texture tex = this.LoadTexture(loader); if (IsErrorImage(tex)) { base.Log.ErrorFormat("Image decode failed: {0} bytesDownloaded={1} bytesLength={2}", loader.URL, loader.WWW.bytesDownloaded, loader.WWW.bytes.Length); } else { base.Log.InfoFormat("PreviewImage loaded: {0}", loader.URL); this.textureCache[loader.URL] = tex; this.SetImage(newsItem, tex); } }
public virtual void OnLoadComplete() { Logger.Debug( string.Empty ); var eventObject = new LoadCompleteEvent(); OnDebugEvent( eventObject, InterfaceGuids.IDebugLoadCompleteEvent2Guid ); }
public void DisposeLoader(LoadCompleteEvent e, SingleNode <UrlLoaderComponent> node) { this.DisposeLoader(node); }