Example #1
0
        // Constructor
        public SectorData(BaseVisualMode mode, Sector s)
        {
            // Initialize
            this.mode              = mode;
            this.sector            = s;
            this.updated           = false;
            this.floorchanged      = false;
            this.ceilingchanged    = false;
            this.lightlevels       = new List <SectorLevel>(2);
            this.extrafloors       = new List <Effect3DFloor>(1);
            this.alleffects        = new List <SectorEffect>(1);
            this.updatesectors     = new Dictionary <Sector, bool>(2);
            this.floor             = new SectorLevel(sector, SectorLevelType.Floor);
            this.floorbase         = new SectorLevel(sector, SectorLevelType.Floor);   //mxd
            this.ceiling           = new SectorLevel(sector, SectorLevelType.Ceiling);
            this.ceilingbase       = new SectorLevel(sector, SectorLevelType.Ceiling); //mxd
            this.glowingflateffect = new EffectGlowingFlat(this);                      //mxd

            // Add ceiling and floor
            lightlevels.Add(floor);
            lightlevels.Add(ceiling);

            BasicSetup();
        }