-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use callbacks interface in RPCHandler
- Loading branch information
1 parent
1f672ed
commit 3e2eace
Showing
4 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
ice-adapter/src/main/java/com/faforever/iceadapter/FafRpcCallbacks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.faforever.iceadapter; | ||
|
||
public interface FafRpcCallbacks { | ||
void onHostGame(String mapName); | ||
|
||
void onJoinGame(String remotePlayerLogin, int remotePlayerId); | ||
|
||
void onConnectToPeer(String remotePlayerLogin, int remotePlayerId, boolean offer); | ||
|
||
void onDisconnectFromPeer(int remotePlayerId); | ||
|
||
void close(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters