Example #1
0
        void Reboot(Vector3 npos)
        {
            localPos = npos;
            anim     = new Countless <Vector3>();
            uvpoints = new List <Vertex>();

            SmoothNormal = Cfg.newVerticesSmooth;
        }
Example #2
0
        public override void Reboot()
        {
            base.Reboot();
            if (Application.isPlaying)
            {
                frameIndex = 0;
            }

            if (elements == null)
            {
                elements = new Countless <AnimatedElement>();
            }

            if (frames == null)
            {
                frames = new List <SpeedAnimationFrame>();
            }
        }
        public static bool select <T>(ref int no, Countless <T> tree)
        {
            List <int>    inds;
            List <T>      objs     = tree.GetAllObjs(out inds);
            List <string> filtered = new List <string>();
            int           tmpindex = -1;

            for (int i = 0; i < objs.Count; i++)
            {
                if (no == inds[i])
                {
                    tmpindex = i;
                }
                filtered.Add(objs[i].ToPEGIstring());
            }

            if (select(ref tmpindex, filtered.ToArray()))
            {
                no = inds[tmpindex];
                return(true);
            }
            return(false);
        }
Example #4
0
        public static bool select <T>(ref int no, Countless <T> tree)
        {
            List <int> indexes;
            var        objs     = tree.GetAllObjs(out indexes);
            var        filtered = new List <string>();
            var        current  = -1;

            for (var i = 0; i < objs.Count; i++)
            {
                if (no == indexes[i])
                {
                    current = i;
                }
                filtered.Add(objs[i].ToPegiString());
            }

            if (select(ref current, filtered.ToArray()))
            {
                no = indexes[current];
                return(true);
            }
            return(false);
        }
 public static Countless <LazyTranslation> From(this Countless <LazyTranslation> sntnc, int lang, string text, string details)
 {
     sntnc[lang] = new LazyTranslation(text, details);
     return(sntnc);
 }
Example #6
0
 static Countless <LazyTranslation> From(this Countless <LazyTranslation> sntnc, int lang, string text)
 {
     sntnc[lang] = new LazyTranslation(text);
     return(sntnc);
 }