forked from External/mage
update deck every 5 seconds while constructing or sideboarding
This commit is contained in:
parent
beb2eb8e27
commit
fe79ee97a9
15 changed files with 161 additions and 16 deletions
|
|
@ -118,7 +118,12 @@ public class TableManager {
|
|||
return false;
|
||||
}
|
||||
|
||||
public void removeSession(UUID userId) {
|
||||
public void updateDeck(UUID userId, UUID tableId, DeckCardLists deckList) throws MageException {
|
||||
if (controllers.containsKey(tableId))
|
||||
controllers.get(tableId).updateDeck(userId, deckList);
|
||||
}
|
||||
|
||||
public void removeSession(UUID userId) {
|
||||
for (TableController controller: controllers.values()) {
|
||||
controller.kill(userId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue