public EncounterGroupParser(string filename, FOGAMEParser gameParser, DialogListParser dialogParser, FOGMParser gmParser, MSGParser fodlgParser) { _gameParser = gameParser; _gmParser = gmParser; _fodlgParser = fodlgParser; _filename = filename; _groups = EncounterGroupFormat.Load(filename); }
public bool Save(List <EncounterGroup> groups, string groupsPath, string worldHeaderPath) { Utils.Log("Saving group defines to " + worldHeaderPath); Utils.Log("Saving groups to " + groupsPath); Utils.Log("Saving GM group data to " + _gmParser.GetFilename()); if (!EncounterGroupFormat.Save(groups, groupsPath) || !WriteEncounterGroupBlock(groups, worldHeaderPath) || !_gmParser.WriteEncounterGroupNameBlock(groups)) { return(false); } return(true); }