Example #1
0
        public void RemoveFromScene(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;

            Debug.Assert(cellProxy != null, "Removing wrong type of clipmap cell from scene!");
            cellProxy.SetVisibility(false);
        }
        public void RemoveFromScene(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;
            Debug.Assert(cellProxy != null, "Removing wrong type of clipmap cell from scene!");
            cellProxy.SetVisibility(false);

            m_mergeHandler.OnRemovedFromScene(cellProxy);
        }
Example #3
0
        public void AddToMergeBatch(IMyClipmapCell cell)
        {
            var cellProxy = (MyClipmapCellProxy)cell;

            if (m_mergeHandler != null)
            {
                m_mergeHandler.OnAddedToScene(cellProxy);
            }
        }
Example #4
0
        public void AddToScene(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;

            Debug.Assert(cellProxy != null, "Adding wrong type of clipmap cell to scene!");
            if (cellProxy != null)
            {
                cellProxy.SetVisibility(true);
            }
        }
Example #5
0
        public void DeleteCell(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;

            Debug.Assert(cellProxy != null, "Deleting wrong type of clipmap cell!");

            if (cellProxy.Actor != null)
            {
                cellProxy.Unload();
            }
        }
        public void AddToScene(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;
            Debug.Assert(cellProxy != null, "Adding wrong type of clipmap cell to scene!");
            if (cellProxy != null)
            {
                cellProxy.SetVisibility(true);

                m_mergeHandler.OnAddedToScene(cellProxy);
            }
        }
Example #7
0
        public void DeleteCell(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;

            Debug.Assert(cellProxy != null, "Deleting wrong type of clipmap cell!");

            if (cellProxy.Actor != null)
            {
                if (m_mergeHandler == null || !m_mergeHandler.OnDeleteCell(cellProxy))
                {
                    cellProxy.Unload();
                }
            }
        }
Example #8
0
 public void UpdateMesh(IMyClipmapCell cell, MyRenderMessageUpdateClipmapCell msg)
 {
     cell.UpdateMesh(msg);
 }
 public void DeleteCell(IMyClipmapCell cell)
 {
     (cell as MyClipmapCellProxy).Unload();
 }
Example #10
0
 void IMyClipmapCellHandler.AddToScene(IMyClipmapCell cell)
 {
     MyRender.AddRenderObject((MyRenderVoxelCell)cell);
 }
Example #11
0
 void IMyClipmapCellHandler.RemoveFromScene(IMyClipmapCell cell)
 {
     MyRender.RemoveRenderObject((MyRenderVoxelCell)cell);
 }
Example #12
0
 public void RemoveFromScene(IMyClipmapCell cell)
 {
     (cell as MyClipmapCellProxy).SetVisibility(false);
 }
Example #13
0
 void IMyClipmapCellHandler.DeleteCell(IMyClipmapCell cell)
 {
     ((MyRenderVoxelCell)cell).UnloadContent();
 }
Example #14
0
 public void DeleteCell(IMyClipmapCell cell)
 {
     (cell as MyClipmapCellProxy).Unload();
 }
Example #15
0
 public void UpdateMesh(IMyClipmapCell cell, MyRenderMessageUpdateClipmapCell msg)
 {
     cell.UpdateMesh(msg);
 }
 void IMyClipmapCellHandler.DeleteCell(IMyClipmapCell cell)
 {
     ((MyRenderVoxelCell)cell).UnloadContent();
 }
Example #17
0
 void IMyClipmapCellHandler.AddToMergeBatch(IMyClipmapCell cell)
 {
 }
 void IMyClipmapCellHandler.AddToScene(IMyClipmapCell cell)
 {
     MyRender.AddRenderObject((MyRenderVoxelCell)cell);
 }
 void IMyClipmapCellHandler.RemoveFromScene(IMyClipmapCell cell)
 {
     MyRender.RemoveRenderObject((MyRenderVoxelCell)cell);
 }
Example #20
0
        public void DeleteCell(IMyClipmapCell cell)
        {
            var cellProxy = cell as MyClipmapCellProxy;
            Debug.Assert(cellProxy != null, "Deleting wrong type of clipmap cell!");

            if (cellProxy.Actor != null)
			{
            	if(m_mergeHandler == null || !m_mergeHandler.OnDeleteCell(cellProxy))
                	cellProxy.Unload();
			}
        }
Example #21
0
 public void AddToScene(IMyClipmapCell cell)
 {
     (cell as MyClipmapCellProxy).SetVisibility(true);
 }
Example #22
0
 public void AddToScene(IMyClipmapCell cell)
 {
     (cell as MyClipmapCellProxy).SetVisibility(true);
 }
Example #23
0
 public void RemoveFromScene(IMyClipmapCell cell)
 {
     (cell as MyClipmapCellProxy).SetVisibility(false);
 }
Example #24
0
 public void AddToMergeBatch(IMyClipmapCell cell)
 {
     var cellProxy = (MyClipmapCellProxy)cell;
     if (m_mergeHandler != null)
         m_mergeHandler.OnAddedToScene(cellProxy);
 }