MultiEditor.MultiEditorComponentList.CalcDoubleSurface C# (CSharp) Method

CalcDoubleSurface() public method

public CalcDoubleSurface ( ) : void
return void
        public void CalcDoubleSurface()
        {
            int lastx = -1;
            int lasty = -1;
            List<MultiTile> xyarr = new List<MultiTile>();
            DoubleSurfaceCount = 0;
            foreach (MultiTile tile in Tiles)
            {
                if (tile.isVirtualFloor)
                    continue;
                ItemData itemdata = TileData.ItemTable[tile.ID];
                if ((itemdata.Flags & TileFlag.Surface) != 0)
                {
                    if (tile.X != lastx && tile.Y != lasty)
                        xyarr = GetXYArray(tile.X, tile.Y);

                    if (tile.IsDoubleSurface(xyarr))
                        ++DoubleSurfaceCount;
                }
            }
        }