Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }