예제 #1
0
 public void Unregister(IOnlineComponent component)
 {
     Scheduler.Add(delegate
     {
         components.Remove(component);
     });
 }
예제 #2
0
 public void Register(IOnlineComponent component)
 {
     Scheduler.Add(delegate
     {
         components.Add(component);
         component.APIStateChanged(this, state);
     });
 }
예제 #3
0
파일: APIAccess.cs 프로젝트: yheno/osu
 public void Unregister(IOnlineComponent component)
 {
     Scheduler.Add(delegate
     {
         components.Remove(component);
     });
 }
예제 #4
0
파일: APIAccess.cs 프로젝트: yheno/osu
 public void Register(IOnlineComponent component)
 {
     Scheduler.Add(delegate
     {
         components.Add(component);
         component.APIStateChanged(this, state);
     });
 }
예제 #5
0
 public void Register(IOnlineComponent component)
 {
 }
예제 #6
0
 /// <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);
 }
예제 #7
0
 public void Unregister(IOnlineComponent component)
 {
     Schedule(() => components.Remove(component));
 }