Tables and queues now preserve their order on server.
This commit is contained in:
@@ -5,6 +5,7 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
import org.apache.commons.lang.mutable.MutableObject;
|
import org.apache.commons.lang.mutable.MutableObject;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@@ -12,8 +13,8 @@ public class HallCommunicationChannel {
|
|||||||
private int _channelNumber;
|
private int _channelNumber;
|
||||||
private long _lastConsumed;
|
private long _lastConsumed;
|
||||||
private String _lastMotd;
|
private String _lastMotd;
|
||||||
private Map<String, Map<String, String>> _tournamentQueuePropsOnClient = new HashMap<String, Map<String, String>>();
|
private Map<String, Map<String, String>> _tournamentQueuePropsOnClient = new LinkedHashMap<String, Map<String, String>>();
|
||||||
private Map<String, Map<String, String>> _tablePropsOnClient = new HashMap<String, Map<String, String>>();
|
private Map<String, Map<String, String>> _tablePropsOnClient = new LinkedHashMap<String, Map<String, String>>();
|
||||||
|
|
||||||
public HallCommunicationChannel(int channelNumber) {
|
public HallCommunicationChannel(int channelNumber) {
|
||||||
_channelNumber = channelNumber;
|
_channelNumber = channelNumber;
|
||||||
@@ -31,8 +32,8 @@ public class HallCommunicationChannel {
|
|||||||
hallChannelVisitor.channelNumber(_channelNumber);
|
hallChannelVisitor.channelNumber(_channelNumber);
|
||||||
final MutableObject newMotd = new MutableObject();
|
final MutableObject newMotd = new MutableObject();
|
||||||
|
|
||||||
final Map<String, Map<String, String>> tournamentsOnServer = new HashMap<String, Map<String, String>>();
|
final Map<String, Map<String, String>> tournamentsOnServer = new LinkedHashMap<String, Map<String, String>>();
|
||||||
final Map<String, Map<String, String>> tablesOnServer = new HashMap<String, Map<String, String>>();
|
final Map<String, Map<String, String>> tablesOnServer = new LinkedHashMap<String, Map<String, String>>();
|
||||||
|
|
||||||
hallServer.processHall(player,
|
hallServer.processHall(player,
|
||||||
new HallInfoVisitor() {
|
new HallInfoVisitor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user