Example #1
0
        public Blueprint(int width, int height)
        {
            this.Width = width;
            this.Height = height;

            var numTiles = width * height;
            this.WallComp = new WallComponent();
            WallComp.blueprint = this;
            this.WallsAt = new List<int>();
            this.Walls = new WallTile[numTiles];
            this.Ground = new BlueprintGround[numTiles];
            this.Floor = new FloorComponent[numTiles];
            this.Objects = new BlueprintObjectList[numTiles];

            this.Rooms = new RoomMap();
            this.RoomData = new BlueprintRoom[0];
        }
        public Blueprint(int width, int height)
        {
            this.Width = width;
            this.Height = height;

            var numTiles = width * height;
            this.WallComp = new WallComponent();
            WallComp.blueprint = this;
            this.FloorComp = new NewFloorComponent();
            FloorComp.blueprint = this;

            this.WallsAt = new List<int>[Stories];
            this.Walls = new WallTile[Stories][];

            this.Ground = new BlueprintGround[numTiles];
            this.Floor = new FloorComponent[numTiles];

            this.Floors = new FloorTile[Stories][];

            for (int i=0; i<Stories; i++)
            {
                this.WallsAt[i] = new List<int>();
                this.Walls[i] = new WallTile[numTiles];

                this.Floors[i] = new FloorTile[numTiles];
            }

            this.Objects = new BlueprintObjectList[numTiles];
        }