public Furniture Revert() { CustomFurniture.CustomFurniture self = new CustomFurniture.CustomFurniture(this.data, this.id, this.TileLocation); self.defaultBoundingBox.Value = this.defaultBoundingBox.Value; self.boundingBox.Value = this.boundingBox.Value; self.currentRotation.Value = this.currentRotation.Value; self.rotations.Value = this.rotations.Value; self.sourceRect.Value = this.sourceRect.Value; self.rotate(); self.rotate(); self.rotate(); self.rotate(); return(self); }
public Furniture Revert() { CustomFurniture.CustomFurniture self = new CustomFurniture.CustomFurniture(this.data, this.id, this.tileLocation); self.defaultBoundingBox = this.defaultBoundingBox; self.boundingBox = this.boundingBox; self.currentRotation = this.currentRotation; self.rotations = this.rotations; self.sourceRect = this.sourceRect; self.rotate(); self.rotate(); self.rotate(); self.rotate(); return(self); }