コード例 #1
0
ファイル: Sector.cs プロジェクト: skittles1/GZDoomBuilder_M59
        // Constructor
        internal Sector(MapSet map, int listindex, int index)
        {
            // Initialize
            this.elementtype      = MapElementType.SECTOR;        //mxd
            this.map              = map;
            this.listindex        = listindex;
            this.sidedefs         = new LinkedList <Sidedef>();
            this.fixedindex       = index;
            this.floortexname     = "-";
            this.ceiltexname      = "-";
            this.longfloortexname = MapSet.EmptyLongName;
            this.longceiltexname  = MapSet.EmptyLongName;
            this.flags            = new Dictionary <string, bool>(StringComparer.Ordinal); //mxd
            this.tags             = new List <int> {
                0
            };                                           //mxd
            this.updateneeded        = true;
            this.triangulationneeded = true;
            this.triangles           = new Triangulation();   //mxd
            this.surfaceentries      = new SurfaceEntryCollection();

            if (map == General.Map.Map)
            {
                General.Map.UndoRedo.RecAddSector(this);
            }

            // We have no destructor
            GC.SuppressFinalize(this);
        }
コード例 #2
0
        // Constructor
        internal Sector(MapSet map, int listindex, int index)
        {
            // Initialize
            this.map                 = map;
            this.listindex           = listindex;
            this.sidedefs            = new LinkedList <Sidedef>();
            this.fixedindex          = index;
            this.floortexname        = "-";
            this.ceiltexname         = "-";
            this.longfloortexname    = MapSet.EmptyLongName;
            this.longceiltexname     = MapSet.EmptyLongName;
            this.updateneeded        = true;
            this.triangulationneeded = true;
            this.surfaceentries      = new SurfaceEntryCollection();

            if (map == General.Map.Map)
            {
                General.Map.UndoRedo.RecAddSector(this);
            }

            // We have no destructor
            GC.SuppressFinalize(this);
        }
コード例 #3
0
        // Constructor
        internal Sector(MapSet map, int listindex)
        {
            // Initialize
            this.map                      = map;
            this.listindex                = listindex;
            this.sidedefs                 = new LinkedList <Sidedef>();
            this.updateneeded             = true;
            this.ceilingplaneupdateneeded = true;
            this.floorplaneupdateneeded   = true;
            this.triangulationneeded      = true;
            this.surfaceentries           = new SurfaceEntryCollection();
            this.floorflags               = new Dictionary <string, bool>(StringComparer.Ordinal);
            this.ceilingflags             = new Dictionary <string, bool>(StringComparer.Ordinal);
            this.firstwall                = null;
            this.extra                    = -1;
            this.floorslope               = Angle2D.PIHALF; //mxd
            this.ceilingslope             = Angle2D.PIHALF; //mxd

            if (map == General.Map.Map)
            {
                General.Map.UndoRedo.RecAddSector(this);
            }
        }