Esempio n. 1
0
        private static Node Get(int i, float x, float y)
        {
            Node retn = null;

            if (inactive.Count > 0)
            {
                retn = inactive.RemoveLast();
            }
            else
            {
                retn = new Node(i, x, y);
            }

            retn.steiner = false;
            retn.next    = default;
            retn.prev    = default;
            retn.prevZ   = default;
            retn.nextZ   = default;
            retn.z       = default;
            retn.i       = i;
            retn.x       = x;
            retn.y       = y;
            active.Add(retn);
            return(retn);
        }
Esempio n. 2
0
        public void GoBack()
        {
            if (historyIndex == 0)
            {
                return;
            }

            string lastRoute = m_HistoryStack.RemoveLast();

            m_ForwardHistoryStack.Add(lastRoute);

            string route = m_HistoryStack.RemoveLast();

            historyIndex = historyIndex - 2;
            GoTo(route, true);
        }
Esempio n. 3
0
        public void GoForwards()
        {
            if (!CanGoForwards)
            {
                return;
            }

            GoTo(m_ForwardHistoryStack.RemoveLast(), true);
        }
Esempio n. 4
0
        protected override LinqCompiler CreateNested()
        {
            if (s_CompilerPool.size == 0)
            {
                return(new UIForiaLinqCompiler());
            }

            return(s_CompilerPool.RemoveLast());
        }
Esempio n. 5
0
            public VertigoMesh GetStatic()
            {
                VertigoMesh retn = null;

                if (staticPool.Count > 0)
                {
                    retn = staticPool.RemoveLast();
                }
                else
                {
                    retn = new VertigoMesh(this, false);
                }

                retn.isActive = true;
                return(retn);
            }
Esempio n. 6
0
            public VertigoMesh GetDynamic()
            {
                VertigoMesh retn = null;

                if (dynamicPool.Count > 0)
                {
                    retn = dynamicPool.RemoveLast();
                }
                else
                {
                    retn = new VertigoMesh(this, true);
                }

                retn.isActive = true;
                return(retn);
            }
Esempio n. 7
0
        public static UIForiaData Get()
        {
            UIForiaData retn = null;

            if (s_Pool.size > 0)
            {
                retn = s_Pool.RemoveLast();
            }
            else
            {
                retn = new UIForiaData();
            }

            retn.isActive = true;
            return(retn);
        }
Esempio n. 8
0
        public PooledMesh Get()
        {
            PooledMesh retn = null;

            if (dynamicPool.Count > 0)
            {
                retn = dynamicPool.RemoveLast();
            }
            else
            {
                retn = new PooledMesh(this);
            }

            retn.isActive = true;
            return(retn);
        }
Esempio n. 9
0
        public VertigoMaterial GetInstance()
        {
            VertigoMaterial retn = null;

            if (instances.Count > 0)
            {
                retn = instances.RemoveLast();
            }
            else
            {
                retn = new VertigoMaterial(this);
            }

            retn.isActive = true;
            return(retn);
        }