Ejemplo n.º 1
0
 public static void SaveStdData(this IKeepMyCfg s)
 {
     if (s != null)
     {
         s.ConfigStd = s.Encode().ToString();
     }
 }
Ejemplo n.º 2
0
Archivo: ICfg.cs Proyecto: Vytek/Tools
 public static void SaveCfgData(this IKeepMyCfg s)
 {
     if (s != null)
     {
         s.ConfigStd = s.Encode().ToString();
         (s as Object).SetToDirty();
     }
 }
Ejemplo n.º 3
0
        public static bool LoadCfgData(this IKeepMyCfg s)
        {
            if (s == null)
            {
                return(false);
            }

            s.Decode(s.ConfigStd);

            return(true);
        }
Ejemplo n.º 4
0
        public static void SaveCfgData(this IKeepMyCfg s, bool setDirty = true)
        {
            if (s != null)
            {
                s.ConfigStd = s.Encode().ToString();

                var scObj = s as ScriptableObject;
                if (scObj)
                {
                    scObj.SetToDirty();
                }
            }
        }