public void CellUnloaded(Int3 batchId, Int3 cellId, int level) { AbsoluteEntityCell cell = new AbsoluteEntityCell(batchId.Model(), cellId.Model(), level); if (visibleCells.Contains(cell)) { visibleCells.Remove(cell); removed.Add(cell); MarkCellsReadyForSync(0); } }
private IEnumerator WaitAndAddCell(Int3 batchId, Int3 cellId, int level) { yield return(new WaitForSeconds(0.5f)); AbsoluteEntityCell cell = new AbsoluteEntityCell(batchId.Model(), cellId.Model(), level); if (!visibleCells.Contains(cell)) { visibleCells.Add(cell); added.Add(cell); } }
public BaseModuleRotationMetadata(Int3 cell, int direction) : base(typeof(BaseAddModuleGhost)) { Cell = cell.Model(); Direction = direction; }
public AnchoredFaceRotationMetadata(Int3 cell, int facedirection, int facetype) : base(typeof(BaseAddFaceGhost)) { Cell = cell.Model(); Direction = facedirection; FaceType = facetype; }