public void LoadEffectData(string rootfolder) { string effectFp = FilePaths.GetFullPath(rootfolder + FilePaths.EFFECTS_PATH); EffectParser parser = new EffectParser(effectFp); if(null == mEffects) { mEffects = new List<Effect>(); } parser.Parse(mEffects); }
public void SaveDataToFile(string rootFolder) { string effectFp = FilePaths.GetFullPath(rootFolder + FilePaths.EFFECTS_PATH); Console.WriteLine(effectFp); EffectParser parser = new EffectParser(effectFp); parser.CreateNewFile(effectFp, mEffects); }