Adding format name to table.
This commit is contained in:
@@ -42,16 +42,18 @@ public class HallServer extends AbstractServer {
|
|||||||
_collectionDao = collectionDao;
|
_collectionDao = collectionDao;
|
||||||
_chatServer.createChatRoom("Game Hall");
|
_chatServer.createChatRoom("Game Hall");
|
||||||
|
|
||||||
_supportedFormatNames.put("fotr_block", "FotR Block");
|
addFormat("fotr_block", "Fellowship block", "default", new FotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
|
||||||
_supportedFormats.put("fotr_block", new FotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
|
|
||||||
_formatCollectionIds.put("fotr_block", "default");
|
|
||||||
if (test) {
|
if (test) {
|
||||||
_supportedFormatNames.put("m_fotr_block", "Modified FotR Block");
|
addFormat("m_fotr_block", "Modified Fellowship block", "default", new ModifiedFotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
|
||||||
_supportedFormats.put("m_fotr_block", new ModifiedFotRBlockFormat(_lotroServer.getLotroCardBlueprintLibrary()));
|
|
||||||
_formatCollectionIds.put("m_fotr_block", "default");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void addFormat(String formatCode, String formatName, String formatCollectionId, LotroFormat format) {
|
||||||
|
_supportedFormatNames.put(formatCode, formatName);
|
||||||
|
_formatCollectionIds.put(formatCode, formatCollectionId);
|
||||||
|
_supportedFormats.put(formatCode, format);
|
||||||
|
}
|
||||||
|
|
||||||
public int getTablesCount() {
|
public int getTablesCount() {
|
||||||
return _awaitingTables.size() + _runningTables.size();
|
return _awaitingTables.size() + _runningTables.size();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user