mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
18 lines
440 B
C#
18 lines
440 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;
|
|
}
|
|
}
|
|
}
|