Exemple #1
0
        public static bool Select(this UnnullableSTD <CountlessInt> uc, Trigger t)
        {
            var tmp = uc.Get(t);

            if (pegi.select(ref tmp, t.enm))
            {
                uc.Set(t, tmp);
                return(true);
            }
            return(false);
        }
Exemple #2
0
        public static bool Edit(this UnnullableSTD <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);
        }