Пример #1
0
 public HeightmapController(ITerrainService terrainService, IFaultHeightmapGenerator faultHeightmapGenerator, IDiamondSquareGenerator diamondSquareGenerator, IOpenSimplexGenerator openSimplexGenerator)
 {
     this.terrainService          = terrainService;
     this.faultHeightmapGenerator = faultHeightmapGenerator;
     this.diamondSquareGenerator  = diamondSquareGenerator;
     this.openSimplexGenerator    = openSimplexGenerator;
 }
Пример #2
0
 public TerrainService(IRepository repository, IHeightBasedSplatmapGenerator heightBasedSplatmapGenerator, IFaultHeightmapGenerator faultHeightmapGenerator, IDiamondSquareGenerator diamondSquareGenerator, IOpenSimplexGenerator openSimplexGenerator)
 {
     this.repository = repository;
     this.heightBasedSplatmapGenerator = heightBasedSplatmapGenerator;
     this.faultHeightmapGenerator      = faultHeightmapGenerator;
     this.diamondSquareGenerator       = diamondSquareGenerator;
     this.openSimplexGenerator         = openSimplexGenerator;
 }