public IActionResult CreateDiamondSquareHeightmap([FromBody] DiamondSquareHeightmapRequestDto requestDto) { var result = terrainService.Generate(requestDto); return(Ok(result)); }
public Guid Generate(DiamondSquareHeightmapRequestDto requestDto) { var heightmapDto = diamondSquareGenerator.Generate(requestDto.Size, requestDto.OffsetRange, requestDto.OffsetReductionRate, requestDto.Seed); return(CreateHeightmap(heightmapDto)); }