/* Removes all non-adjacent Cells. */ void Prune() { List <HoloCell> orphans = new List <HoloCell>(); for (int i = 0; i < cells.Count; i++) { HoloCell hc = cells[i]; if (!CellAdjacency(focalCell, hc)) { Session.session.world.SetExterior(hc.GetData()); hc.Clear(); orphans.Add(hc); } } for (int i = 0; i < orphans.Count; i++) { cells.Remove(orphans[i]); } }
/* Updates interior in Session's data with current content. */ public void SaveInterior() { Cell c = focalCell.GetData(); Session.session.world.SetRoom(c.id, c.name, c); }