Optimizations

This commit is contained in:
Thorsten Sommer 2020-01-11 23:38:15 +01:00
parent c58d7c104b
commit c79a4d53e4
2 changed files with 2 additions and 2 deletions

View File

@ -11,6 +11,6 @@ namespace CubicNoise
public NoiseTypes Type { get; set; } = NoiseTypes.UNKNOWN; public NoiseTypes Type { get; set; } = NoiseTypes.UNKNOWN;
public Dictionary<IParameterName, int> IntParameters { get; set; } public IReadOnlyDictionary<IParameterName, int> IntParameters { get; set; }
} }
} }

View File

@ -10,7 +10,7 @@ namespace CubicNoise
{ {
private readonly INoiseEngine engine; private readonly INoiseEngine engine;
private NoiseEngine(NoiseTypes type, int seed, Dictionary<IParameterName, int> intParameters) private NoiseEngine(NoiseTypes type, int seed, IReadOnlyDictionary<IParameterName, int> intParameters)
{ {
this.engine = type switch this.engine = type switch
{ {