예제 #1
0
        public override Item getOne()
        {
            Furniture expr_11 = new Furniture(this.parentSheetIndex, this.tileLocation);

            expr_11.drawPosition       = this.drawPosition;
            expr_11.defaultBoundingBox = this.defaultBoundingBox;
            expr_11.boundingBox        = this.boundingBox;
            expr_11.currentRotation    = this.currentRotation - 1;
            expr_11.rotations          = this.rotations;
            expr_11.rotate();
            return(expr_11);
        }
예제 #2
0
        public override Item getOne()
        {
            Furniture furniture = new Furniture(parentSheetIndex, tileLocation);

            furniture.drawPosition.Value       = drawPosition;
            furniture.defaultBoundingBox.Value = defaultBoundingBox;
            furniture.boundingBox.Value        = boundingBox;
            furniture.currentRotation.Value    = (int)currentRotation - 1;
            furniture.isOn.Value      = false;
            furniture.rotations.Value = rotations;
            furniture.rotate();
            return(furniture);
        }
예제 #3
0
        public override Item getOne()
        {
            Furniture furniture = new Furniture(this.parentSheetIndex, this.tileLocation);

            furniture.drawPosition       = this.drawPosition;
            furniture.defaultBoundingBox = this.defaultBoundingBox;
            Rectangle boundingBox = this.boundingBox;

            furniture.boundingBox = boundingBox;
            int num = this.currentRotation - 1;

            furniture.currentRotation = num;
            int rotations = this.rotations;

            furniture.rotations = rotations;
            furniture.rotate();
            return((Item)furniture);
        }