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