コード例 #1
0
ファイル: HoloDeck.cs プロジェクト: justi1jc/FPS
    /* 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]);
        }
    }
コード例 #2
0
ファイル: HoloDeck.cs プロジェクト: justi1jc/FPS
    /* 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);
    }