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); }
public void AddToMergeBatch(IMyClipmapCell cell) { var cellProxy = (MyClipmapCellProxy)cell; if (m_mergeHandler != null) { m_mergeHandler.OnAddedToScene(cellProxy); } }
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); } }
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); } }
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(); } } }
public void UpdateMesh(IMyClipmapCell cell, MyRenderMessageUpdateClipmapCell msg) { cell.UpdateMesh(msg); }
public void DeleteCell(IMyClipmapCell cell) { (cell as MyClipmapCellProxy).Unload(); }
void IMyClipmapCellHandler.AddToScene(IMyClipmapCell cell) { MyRender.AddRenderObject((MyRenderVoxelCell)cell); }
void IMyClipmapCellHandler.RemoveFromScene(IMyClipmapCell cell) { MyRender.RemoveRenderObject((MyRenderVoxelCell)cell); }
public void RemoveFromScene(IMyClipmapCell cell) { (cell as MyClipmapCellProxy).SetVisibility(false); }
void IMyClipmapCellHandler.DeleteCell(IMyClipmapCell cell) { ((MyRenderVoxelCell)cell).UnloadContent(); }
void IMyClipmapCellHandler.AddToMergeBatch(IMyClipmapCell cell) { }
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(); } }
public void AddToScene(IMyClipmapCell cell) { (cell as MyClipmapCellProxy).SetVisibility(true); }
public void AddToMergeBatch(IMyClipmapCell cell) { var cellProxy = (MyClipmapCellProxy)cell; if (m_mergeHandler != null) m_mergeHandler.OnAddedToScene(cellProxy); }