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