Exemplo n.º 1
0
    void AddUpdate(int layerUpdate, IUpdate newUpdate)
    {
        if (layerUpdate >= m_LayerUpdateList.Count)
        {
            int addCount = (layerUpdate - m_LayerUpdateList.Count) + 1;
            for (int i = 0; i < addCount; ++i)
            {
                m_LayerUpdateList.Add(null);
            }
        }

        if (m_LayerUpdateList[layerUpdate] == null)
        {
            m_LayerUpdateList[layerUpdate] = new LayerUpdate();
        }

        m_LayerUpdateList[layerUpdate].m_UpdateMgr.Add(newUpdate);
    }
Exemplo n.º 2
0
    void AddUpdate(int layerUpdate, IUpdate newUpdate)
    {
        if(layerUpdate >= m_LayerUpdateList.Count)
        {
            int addCount = (layerUpdate - m_LayerUpdateList.Count )+ 1;
            for(int i = 0; i < addCount; ++i)
            {
                m_LayerUpdateList.Add(null);
            }
        }

        if(m_LayerUpdateList[layerUpdate] == null)
        {
            m_LayerUpdateList[layerUpdate] = new LayerUpdate();
        }

        m_LayerUpdateList[layerUpdate].m_UpdateMgr.Add(newUpdate);
    }
Exemplo n.º 3
0
        public void testLayerUpdateForm()
        {
            var LU = new LayerUpdate();

            LU.UpdateLayers();
        }