예제 #1
0
        public override void Decode(string data)
        {
            booleans = new UnNullableCfg <CountlessBool>();
            ints     = new UnNullableCfg <CountlessInt>();
            // enumTags = new UnnullableSTD<CountlessInt>();
            //  boolTags = new UnnullableSTD<CountlessBool>();

            base.Decode(data);
        }
예제 #2
0
        public static bool Select(this UnNullableCfg <CountlessInt> uc, Trigger t)
        {
            var tmp = uc.Get(t);

            if (pegi.select(ref tmp, t.enm))
            {
                uc.Set(t, tmp);
                return(true);
            }
            return(false);
        }
예제 #3
0
        public static bool Edit(this UnNullableCfg <CountlessInt> uc, ValueIndex ind)
        {
            var tmp = uc.Get(ind);//[ind.groupIndex][ind.triggerIndex];

            if (pegi.edit(ref tmp))
            {
                uc.Set(ind, tmp);
                return(true);
            }
            return(false);
        }
예제 #4
0
        public static bool Toggle(this UnNullableCfg <CountlessBool> uc, ValueIndex ind)
        {
            var tmp = uc.Get(ind);//[ind.groupIndex][ind.triggerIndex];

            if (pegi.toggleIcon(ref tmp))
            {
                uc.Set(ind, tmp);
                return(true);
            }
            return(false);
        }
예제 #5
0
 public static void Set(this UnNullableCfg <CountlessInt> uc, ValueIndex ind, int value) => uc[ind.groupIndex][ind.triggerIndex] = value;
예제 #6
0
 public static int Get(this UnNullableCfg <CountlessInt> uc, ValueIndex ind) => uc[ind.groupIndex][ind.triggerIndex];
예제 #7
0
 public static bool Get(this UnNullableCfg <CountlessBool> uc, ValueIndex ind) => uc[ind.groupIndex][ind.triggerIndex];
예제 #8
0
 public virtual void Decode(CfgData data)
 {
     booleans = new UnNullableCfg <CountlessBool>();
     ints     = new UnNullableCfg <CountlessInt>();
 }