Example #1
0
 public Generator(ITileManager manager, IOreTable oreTable, IDrawer drawer, IGeneratorParameters parameters)
 {
     this.manager    = manager;
     this.oreTable   = oreTable;
     this.drawer     = drawer;
     this.parameters = parameters;
     CanGenerateTree = this.parameters.TreeSpread;
 }
Example #2
0
        public Uri Build(IGeneratorParameters generatorParameters, IWebPagePath basePagePath)
        {
            var uriString = "";

            uriString += _baseBuilder.Build(basePagePath);
            uriString += _creativityPathBuilder.Build(generatorParameters.CreativityLevel);
            uriString += _seedPathBuilder.Build(generatorParameters.GenerationSeed);

            return(new Uri(uriString, UriKind.Absolute));
        }
Example #3
0
 public ImageUriBuilderParameters(IGeneratorParameters generatorParameters, string hostName, string domain)
 {
     GeneratorParameters = generatorParameters;
     HostName            = hostName;
     Domain = hostName;
 }