BananaMpq.Layer.WmoRelated.MliqChunk.ParseHeightMap C# (CSharp) Méthode

ParseHeightMap() private méthode

Both ExistsTable and heightmap seem to be stored in column major order
private ParseHeightMap ( HeightMapEntry entries, int columns, int rows ) : void
entries HeightMapEntry
columns int
rows int
Résultat void
        private unsafe void ParseHeightMap(HeightMapEntry* entries, int columns, int rows)
        {
            HeightMap = new float[columns, rows];
            for (int r = 0; r < rows; r++)
            {
                for (int c = 0; c < columns; c++)
                {
                    var height = entries[r*columns + c].value;
                    HeightMap[c, r] = height;
                }
            }
        }