use of eidolons.game.battlecraft.logic.meta.macro.MacroPartyManager in project Eidolons by IDemiurge.
the class MacroManager method newGame.
public static void newGame(String scenario) {
load = false;
metaMaster = new ScenarioMetaMaster(scenario) {
@Override
protected PartyManager createPartyManager() {
return new MacroPartyManager(this);
}
};
if (!CoreEngine.isMapEditor()) {
metaMaster.init();
if (metaMaster.getPartyManager().getParty() == null)
return;
}
game = new MacroGame();
if (!CoreEngine.isMapEditor()) {
MacroEngine.init();
game.start(true);
}
GuiEventManager.bind(MAP_READY, p -> {
initComponents();
});
GuiEventManager.trigger(SCREEN_LOADED);
}
Aggregations