Terraria.TileObjectData.Calculate C# (CSharp) Method

Calculate() private method

private Calculate ( ) : void
return void
        private void Calculate()
        {
            if (this._tileObjectCoords.calculated)
                return;
            this._tileObjectCoords.calculated = true;
            this._tileObjectCoords.styleWidth = (this._tileObjectCoords.width + this._tileObjectCoords.padding) * this.Width + (int)this._tileObjectCoords.paddingFix.X;
            int num = 0;
            this._tileObjectCoords.styleHeight = 0;
            for (int index = 0; index < this._tileObjectCoords.heights.Length; ++index)
                num += this._tileObjectCoords.heights[index] + this._tileObjectCoords.padding;
            this._tileObjectCoords.styleHeight = num + (int)this._tileObjectCoords.paddingFix.Y;
            if (!this._hasOwnLiquidDeath)
                return;
            if (this._liquidDeath.lava)
                this.LavaPlacement = LiquidPlacement.NotAllowed;
            if (!this._liquidDeath.water)
                return;
            this.WaterPlacement = LiquidPlacement.NotAllowed;
        }