示例#1
0
        public bool ApplyMod(GmpManipulation m, IMod mod)
        {
#if USE_GMP
            Manipulations[m] = mod;
            File ??= new ExpandedGmpFile();
            return(m.Apply(File));
#else
            return(false);
#endif
        }
示例#2
0
        public bool RevertMod(GmpManipulation m)
        {
#if USE_GMP
            if (Manipulations.Remove(m))
            {
                var def   = ExpandedGmpFile.GetDefault(m.SetId);
                var manip = new GmpManipulation(def, m.SetId);
                return(manip.Apply(File !));
            }
#endif
            return(false);
        }