Beispiel #1
0
        //Feature Rendering

        //Decoration Rendering

        #endregion

        private void HandleDebug()
        {
            if (debugShowCells)
            {
                foreach (var cell in CellCollection.cells.Values)
                {
                    cellDebug.RenderCellDebug(cell.position, cell.type);
                }
            }
            if (debugShowRoomBase)
            {
                foreach (var room in RoomCollection.GetAll())
                {
                    roomDebug.RenderRoomDebug(room);
                }
            }
            if (debugShowDoors)
            {
                nodeDebug.RenderDoorNodes();
            }
            if (debugShowRoomScaffolds)
            {
                RoomCollection.GetAll().ForEach(x => roomDebug.RenderRoomScaffoldingDebug(x));
                roomDebug.RenderRoomScaffoldingDoorDebug();
            }
            if (debugShowPOI)
            {
                nodeDebug.RenderPOI();
            }
        }
Beispiel #2
0
        public static void ScaffoldRoomNodes()
        {
            foreach (var room in RoomCollection.GetAll())
            {
                var scaffold = new Scaffold {
                    roomId = room.id
                };

                Elevation_Parse(room, ref scaffold);

                Floor_ParseMain(room, ref scaffold);
                Floor_ParseConnectors(room, ref scaffold);
                Floor_ParseColumns(room, ref scaffold);

                Wall_ParseMain(room, ref scaffold);
                Wall_ParseConnector(room, ref scaffold);

                Ceiling_Parse(room, ref scaffold);

                Level.roomScaffolds.Add(room.id, scaffold);
            }
            CleanScaffolding();
        }