2025-06-23 11:42:47 -07:00

17 lines
427 B
C#

using AssetRipper.SourceGenerated.Subclasses.Heightmap;
namespace AssetRipper.SourceGenerated.Extensions;
public static class HeightmapExtensions
{
public static int GetWidth(this IHeightmap heightmap)
{
return heightmap.Has_Width() ? heightmap.Width : heightmap.Resolution;
}
public static int GetHeight(this IHeightmap heightmap)
{
return heightmap.Has_Height() ? heightmap.Height : heightmap.Resolution;
}
}