public CloseNet ( VMCloseNetReason reason ) : void | ||
reason | VMCloseNetReason | |
Résultat | void |
public void CleanupLastWorld() { if (ZoomLevel < 4) { ZoomLevel = 5; } vm.Context.Ambience.Kill(); vm.CloseNet(); GameFacade.Scenes.Remove(World); this.Remove(LotController); ucp.SetPanel(-1); ucp.SetInLot(false); }
public void CleanupLastWorld() { if (ZoomLevel < 4) { ZoomLevel = 5; } vm.Context.Ambience.Kill(); foreach (var ent in vm.Entities) //stop object sounds { var threads = ent.SoundThreads; for (int i = 0; i < threads.Count; i++) { threads[i].Sound.RemoveOwner(ent.ObjectID); } threads.Clear(); } vm.CloseNet(VMCloseNetReason.LeaveLot); GameFacade.Scenes.Remove(World); this.Remove(LotController); ucp.SetPanel(-1); ucp.SetInLot(false); }