internal MachineNetworkMetrics(Dictionary <string, object> data) : base(data) { this.MegabitsReceived = LoadCounter.From(data, "megabits_received"); this.MegabitsSent = LoadCounter.From(data, "megabits_sent"); this.TcpSegmentsRetransmitted = LoadCounter.From(data, "tcp_segments_retransmitted"); }
protected void ResetObjectsCounter(int count) { FeedBackText = LanguageManager.Instance.GetTextValue("LOADING") + " " + LanguageManager.Instance.GetTextValue("SCENE_OBJECTS"); CountLoadedObjects = 0; if (LoadCounter != null && LoadCounter.hasLoadObjectsCounter) { LoadCounter.ReplaceLoadObjectsCounter(count, 0, false); } else { LoadCounter = Contexts.sharedInstance.game.CreateEntity(); LoadCounter.AddLoadObjectsCounter(count, 0, false); } }
public void AssetBundleDownloadDependencies(AsyncOperationHandle <IResourceLocator> Content, bool RegisterComplete = true) { ResourceLocationMap locMap = Content.Result as ResourceLocationMap; HashSet <IResourceLocation> Tolode = new HashSet <IResourceLocation>(); HashSet <IResourceLocation> FoundDependencies = new HashSet <IResourceLocation>(); foreach (var Locator in locMap.Locations) { foreach (var Resource in Locator.Value) { if (Resource.HasDependencies) { foreach (var Dependencie in Resource.Dependencies) { if (FoundDependencies.Contains(Dependencie) == false) //Check if it's a new dependency { FoundDependencies.Add(Dependencie); Tolode.Add( Resource); //Then add this to the Load dependency thing idk why can't you Load the dependency directly } } } } } if (RegisterComplete) { var ContentLoadTracker = new LoadCounter(Tolode.Count, RegisterLoad); AddressableDownloadPopUp.DownloadDependencies(Tolode.ToList(), ContentLoadTracker); } else { AddressableDownloadPopUp.DownloadDependencies(Tolode.ToList()); } }
internal ProcessNetworkMetrics(Dictionary <string, object> data) : base(data) { this.MegabitsReceived = LoadCounter.From(data, "megabits_received"); this.MegabitsSent = LoadCounter.From(data, "megabits_sent"); }