Package civquest.io.xmlSaveGame.writer

Examples of civquest.io.xmlSaveGame.writer.DefaultXMLSaveGameWriter$CollectionEncoder


        Registry ioRegistry = civQuest.getTopRegistry().getSubRegistry("io");
        Ruleset xmlSaveRuleset = ioRegistry.getRuleset("xmlSaveGame");

        File file = chooser.getSelectedFile();
        DataToSave data = constructDataToSave();
        XMLSaveGameWriter writer = new DefaultXMLSaveGameWriter(xmlSaveRuleset);
        writer.write(file, data);

      } catch (RulesetException ex) {
        CivQuest.showErrorQuitDialog("There was an error related to ruleset-loading: ",
                       ex);
      } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of civquest.io.xmlSaveGame.writer.DefaultXMLSaveGameWriter$CollectionEncoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.