Exemple #1
0
        public IActionResult CreateFaultHeightmap([FromBody] FaultHeightmapRequestDto requestDto)
        {
            var result = terrainService.Generate(requestDto);

            return(Ok(result));
        }
Exemple #2
0
        public Guid Generate(FaultHeightmapRequestDto requestDto)
        {
            var heightmapDto = faultHeightmapGenerator.GenerateHeightmap(requestDto.Width, requestDto.Height, requestDto.IterationCount, requestDto.OffsetPerIteration, requestDto.Seed);

            return(CreateHeightmap(heightmapDto));
        }