public HeightmapTextureProcessor(IHeightmap heightmap, ITextureGroupResolver textureGroupResolver, ITextureGroupTransitionRepository textureGroupTransitionRepository) { _heightmap = heightmap; _textureGroupResolver = textureGroupResolver; _textureGroupTransitionRepository = textureGroupTransitionRepository; _textures = new Lazy <short[, ]>(InitializeTextures); }
public HeightmapTextureProcessor(IHeightmap heightmap, ITextureGroupResolver textureGroupResolver, ITextureGroupTransitionRepository textureGroupTransitionRepository) { _heightmap = heightmap; _textureGroupResolver = textureGroupResolver; _textureGroupTransitionRepository = textureGroupTransitionRepository; _textures = new Lazy<short[,]>(InitializeTextures); }
public HeightmapTextureProcessor(IHeightmapPage heightmapPage, ITextureGroupResolver textureGroupResolver, ITextureGroupTransitionRepository textureGroupTransitionRepository, IRandomGenerator randomGenerator) { _heightmapPage = heightmapPage; _textureGroupResolver = textureGroupResolver; _textureGroupTransitionRepository = textureGroupTransitionRepository; _randomGenerator = randomGenerator; _textures = new Lazy<short[,]>(InitializeTextures); }
private void SetupTextureGroupResolver() { var mock = new Mock <ITextureGroupResolver>(); //TODO: This will need to be update to be range groups. var textures = new List <TextureGroup> { new TextureGroup { Name = "Lower" }, new TextureGroup { Name = "Upper" } }; mock.SetupGet(groupResolver => groupResolver.TextureGroups) .Returns(textures); _mockTextureGroupResolver = mock.Object; }
private void SetupTextureGroupResolver() { var mock = new Mock<ITextureGroupResolver>(); //TODO: This will need to be update to be range groups. var textures = new List<TextureGroup> { new TextureGroup { Name = "Lower" }, new TextureGroup { Name = "Upper" } }; mock.SetupGet(groupResolver => groupResolver.TextureGroups) .Returns(textures); _mockTextureGroupResolver = mock.Object; }