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