Example #1
0
 public AuthListener(Action success, Action <FailureReason> failure, Action lost)
 {
     OnSuccess = success;
     OnFailure = failure;
     OnLost    = lost;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerAuth.GetListenerType(), this);
 }
Example #2
0
 public OperationalStateChangeListener(Action <uint> stateChanged)
 {
     OnStateChanged = stateChanged;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerOperationalStateChange.GetListenerType(), this);
 }
Example #3
0
 public override void Dispose()
 {
     GalaxyInstance.ListenerRegistrar().Unregister(GalaxyTypeAwareListenerLobbyLeft.GetListenerType(), this);
     base.Dispose();
 }
Example #4
0
 public GalaxyLobbyEnteredListener(Action <GalaxyID, LobbyEnterResult> callback)
 {
     this.callback = callback;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerLobbyEntered.GetListenerType(), this);
 }
Example #5
0
 public GalaxyLobbyLeftListener(Action <GalaxyID, bool> callback)
 {
     this.callback = callback;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerLobbyLeft.GetListenerType(), this);
 }
 public RichPresenceListener(Action <GalaxyID> callback)
 {
     this.callback = callback;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerRichPresence.GetListenerType(), this);
 }
 public LobbyDataListener(Action <GalaxyID, GalaxyID> callback)
 {
     this.callback = callback;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerLobbyData.GetListenerType(), this);
 }
 public GameJoinRequestedListener(Action <GalaxyID, string> callback)
 {
     this.callback = callback;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerGameJoinRequested.GetListenerType(), this);
 }
Example #9
0
 public override void Dispose()
 {
     GalaxyInstance.ListenerRegistrar().Unregister(GalaxyTypeAwareListenerPersonaDataChanged.GetListenerType(), this);
     base.Dispose();
 }
Example #10
0
 public GalaxyPersonaDataChangedListener(Action <GalaxyID, uint> callback)
 {
     this.callback = callback;
     GalaxyInstance.ListenerRegistrar().Register(GalaxyTypeAwareListenerPersonaDataChanged.GetListenerType(), this);
 }