public static bool toggle(int ind, CountlessBool tb)
        {
            bool has = tb[ind];

            if (toggle(ref has))
            {
                tb.Toggle(ind);
                return(true);
            }
            return(false);
        }
Example #2
0
        public void RemoveAllTags()
        {
            List <int>           groupInds;
            List <CountlessBool> lsts = boolTags.GetAllObjs(out groupInds);

            //Stories.all.GetAllObjs(out inds);

            for (int i = 0; i < groupInds.Count; i++)
            {
                CountlessBool vb  = lsts[i];
                List <int>    tag = vb.GetItAll();

                foreach (int t in tag)
                {
                    SetTagBool(groupInds[i], t, false);
                }
            }

            boolTags = new UnnullableSTD <CountlessBool>();
        }