mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Draft stability improvements (#9435)
This commit is contained in:
parent
c8c663b976
commit
b9530e307d
13 changed files with 116 additions and 4 deletions
|
|
@ -149,6 +149,8 @@ public interface MageServer {
|
|||
|
||||
void sendCardMark(UUID draftId, String sessionId, UUID cardId) throws MageException;
|
||||
|
||||
void setBoosterLoaded(UUID draftId, String sessionId) throws MageException;
|
||||
|
||||
//challenge methods
|
||||
// void startChallenge(String sessionId, UUID roomId, UUID tableId, UUID challengeId) throws MageException;
|
||||
//replay methods
|
||||
|
|
|
|||
|
|
@ -987,6 +987,20 @@ public class SessionImpl implements Session {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean setBoosterLoaded(UUID draftId) {
|
||||
try {
|
||||
if (isConnected()) {
|
||||
server.setBoosterLoaded(draftId, sessionId);
|
||||
}
|
||||
} catch (MageException ex) {
|
||||
handleMageException(ex);
|
||||
} catch (Throwable t) {
|
||||
handleThrowable(t);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean joinChat(UUID chatId) {
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ public interface GamePlay {
|
|||
|
||||
boolean updateDeck(UUID tableId, DeckCardLists deck);
|
||||
|
||||
boolean setBoosterLoaded(UUID draftId);
|
||||
|
||||
DraftPickView sendCardPick(UUID draftId, UUID cardId, Set<UUID> hiddenCards);
|
||||
DraftPickView sendCardMark(UUID draftId, UUID cardId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue