public void Unregister(IOnlineComponent component) { Scheduler.Add(delegate { components.Remove(component); }); }
public void Register(IOnlineComponent component) { Scheduler.Add(delegate { components.Add(component); component.APIStateChanged(this, state); }); }
public void Register(IOnlineComponent component) { }
/// <summary> /// Register a component to receive API events. /// Fires <see cref="IOnlineComponent.APIStateChanged"/> once immediately to ensure a correct state. /// </summary> /// <param name="component"></param> public void Register(IOnlineComponent component) { Schedule(() => components.Add(component)); component.APIStateChanged(this, state); }
public void Unregister(IOnlineComponent component) { Schedule(() => components.Remove(component)); }