public GalaxyNetHelper()
 {
     lobbyRequested       = getStartupLobby();
     lobbyJoinRequested   = new GameJoinRequestedListener(onLobbyJoinRequested);
     lobbyDataListener    = new LobbyDataListener(onLobbyDataUpdated);
     richPresenceListener = new RichPresenceListener(onRichPresenceUpdated);
     if (lobbyRequested != null)
     {
         Game1.multiplayer.inviteAccepted();
     }
 }
示例#2
0
 private void ListenersInit()
 {
     if (inviteReceivedListener == null)
     {
         inviteReceivedListener = new GameInvitationReceivedListener();
     }
     if (joinRequestedListener == null)
     {
         joinRequestedListener = new GameJoinRequestedListener();
     }
 }