Search in sources :

Example 1 with CardsDB

use of com.gianlu.pyxreborn.server.DB.CardsDB in project PretendYoureXyzzyReborn by devgianlu.

the class Startup method main.

public static void main(String[] args) throws SQLException {
    Config config = new Config();
    try {
        JCommander.newBuilder().programName("pyx-server").addObject(config).expandAtSign(true).build().parse(args);
    } catch (ParameterException ex) {
        ex.printStackTrace();
        ex.getJCommander().usage();
        System.exit(1);
        return;
    }
    CardsDB db = new CardsDB(config);
    CardSets sets = db.loadCardSets();
    Server server = new Server(config, sets);
    server.start();
}
Also used : ParameterException(com.beust.jcommander.ParameterException) CardsDB(com.gianlu.pyxreborn.server.DB.CardsDB) CardSets(com.gianlu.pyxreborn.server.Lists.CardSets)

Aggregations

ParameterException (com.beust.jcommander.ParameterException)1 CardsDB (com.gianlu.pyxreborn.server.DB.CardsDB)1 CardSets (com.gianlu.pyxreborn.server.Lists.CardSets)1