示例#1
0
        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);
        }
示例#2
0
        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);
        }