public override void Unload() { UIs = null; OnUnload?.Invoke(); OnUnload = null; }
/// <summary> /// Allows you to hide a banner ad, instead of destroying it altogether. /// </summary> public void Hide(bool destroy = false) { this.m_showing = false; loaded = false; OnHide?.Invoke(this, new HideEventArgs(m_placementId)); OnUnload?.Invoke(this, new EventArgs()); }
public void Dispose() { OnUnload?.Invoke(); try { AppDomain.Unload(Domain); } catch { } }
public void UnloadGameEntities() { foreach (GameEntity ge in gameEntities) { MapController.UnBind(ge); } MapController.UnBindAll(); gameEntities.Clear(); OnUnload?.Invoke(this, EventArgs.Empty); }
internal async Task NotifyUnload() { await _serverEvents.NotifyUnload(); var args = new EventArgs(); OnUnload?.Invoke(this, args); await OnUnloadAsync.InvokeAsync(this, args); UnloadComplete?.Invoke(this, new EventArgs()); _sequencer.AbortAll(); }
public void Run() { _world.Load(); _server.Open(); OnLoad?.Invoke(this); double ticksPerFrame = 1d / UpdatesPerSecond * TimeSpan.TicksPerSecond; _ticker.Start(TimeSpan.FromTicks((long)ticksPerFrame)); _server.Close(); _world.Unload(); OnUnload?.Invoke(this); }
public override void Unload() { OnUnload?.Invoke(); OnUnload = null; instance = null; bashKey = null; dashKey = null; climbKey = null; featherKey = null; chargeKey = null; burrowKey = null; //SoulLinkKey = null; ConfigClient = null; }
private void UnloadInternal(bool invokeUnloadEvent) { if (invokeUnloadEvent) { OnUnload?.Invoke(this); } if (_textures != null) { for (int i = 0; i < _textures.Length; i++) { _textures[i]?.Dispose(); } } IsLoaded = false; }
public void Unload() { OnUnload?.Invoke(this); }
public void Unload() { OnUnload?.Invoke(); }
internal void UnloadInternal() { OnUnload?.Invoke(); Unload(); }
public static void InvokeOnUnload() { OnUnload?.Invoke(); }
internal void InvokeOnUnload() { OnUnload?.Invoke(); }
public AssemblyLoaderProvider(string name, bool isCollectible) : base(name, isCollectible) { OnUnload = delegate { return(Task.CompletedTask); }; Unloading += _ => Task.Run(() => OnUnload.Invoke(GetName())); }
public AssemblyLoaderProvider(string name) : this(name, true) { OnUnload = delegate { return(Task.CompletedTask); }; Unloading += _ => Task.Run(() => OnUnload.Invoke(GetName())); }
public void Dispose() { Task.Run(() => OnUnload.Invoke(Name)); }
public void NotifyUnload(Event e) => OnUnload?.Invoke(this, e);
/// <inheritdoc/> public override void Unload() { OnUnload?.Invoke(); OnUnload = null; Instance = null; }