var searchIndex = {}; searchIndex["worldgen"] = {"doc":"World and Noise Generation in Rust.","items":[[0,"noise","worldgen","The Noise module provides generators for different kinds of noise.",null,null],[0,"perlin","worldgen::noise","A provider of perlin noise.",null,null],[3,"Octaves","worldgen::noise::perlin","Octaves are the number of layers of coherent noise used\nin the generation of perlin noise.",null,null],[12,"value","","",0,null],[3,"Frequency","","Frequency controls the 'width' of the noise. If you imagine noise\nas hills and valleys, then frequency controls the distance between\nthem.",null,null],[12,"value","","",1,null],[3,"Persistence","","Persistence controls how much each octave contributes to the\nfinal noise value.",null,null],[12,"value","","",2,null],[3,"Lacunarity","","Lacunarity controls the frequency of each octave in the final noise\nvalue.",null,null],[12,"value","","",3,null],[3,"PerlinNoise","","The perlin noise source",null,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"of","","",0,{"inputs":[{"name":"u32"}],"output":{"name":"octaves"}}],[11,"default","","",0,{"inputs":[],"output":{"name":"octaves"}}],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"of","","",1,{"inputs":[{"name":"f64"}],"output":{"name":"frequency"}}],[11,"default","","",1,{"inputs":[],"output":{"name":"frequency"}}],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"of","","",2,{"inputs":[{"name":"f64"}],"output":{"name":"persistence"}}],[11,"default","","",2,{"inputs":[],"output":{"name":"persistence"}}],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"of","","",3,{"inputs":[{"name":"f64"}],"output":{"name":"lacunarity"}}],[11,"default","","",3,{"inputs":[],"output":{"name":"lacunarity"}}],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"default","","",4,{"inputs":[],"output":{"name":"perlinnoise"}}],[11,"new","","Construct the default perlin source.",4,{"inputs":[],"output":{"name":"perlinnoise"}}],[11,"set","","Set a property on the noise source.",4,null],[11,"generate","","",4,null],[0,"coherent","worldgen::noise","A provider of coherent noise.\nThis generates a noise value for each corner of the unit square the given\npoint is in, and then calculates the noise value based on these.",null,null],[3,"CoherentNoise","worldgen::noise::coherent","",null,null],[11,"hash","","",5,null],[11,"clone","","",5,null],[11,"default","","",5,{"inputs":[],"output":{"name":"coherentnoise"}}],[11,"generate","","",5,null],[8,"NoiseProvider","worldgen::noise","The trait for a noise generator.",null,null],[10,"generate","","This method generates a value of noise at the given location, using a given seed.",6,null],[0,"noisemap","worldgen","Generators for finite noise maps",null,null],[3,"Seed","worldgen::noisemap","Sets the seed that is used for generating the noise.",null,null],[12,"value","","",7,null],[3,"Step","","Sets the increment in x and y for each coordinate in the\nnoise map.",null,null],[12,"x","","",8,null],[12,"y","","",8,null],[3,"Size","","Sets the size of the generated chunks.",null,null],[12,"w","","",9,null],[12,"h","","",9,null],[3,"NoiseMap","","The standard noise map.",null,null],[3,"ScaledNoiseMap","","A scaled noise map.",null,null],[3,"NoiseMapCombination","","A combination of noise maps.",null,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"fmt","","",7,null],[11,"clone","","",7,null],[11,"default","","",7,{"inputs":[],"output":{"name":"seed"}}],[11,"of_value","","Sets the seed to an exact integer value.",7,{"inputs":[{"name":"u64"}],"output":{"name":"seed"}}],[11,"of","","Sets the seed to the hash of whatever is provided.",7,{"inputs":[{"name":"t"}],"output":{"name":"seed"}}],[11,"eq","","",8,null],[11,"ne","","",8,null],[11,"fmt","","",8,null],[11,"clone","","",8,null],[11,"default","","",8,{"inputs":[],"output":{"name":"step"}}],[11,"of","","",8,{"inputs":[{"name":"f64"},{"name":"f64"}],"output":{"name":"step"}}],[11,"eq","","",9,null],[11,"ne","","",9,null],[11,"fmt","","",9,null],[11,"clone","","",9,null],[11,"default","","",9,{"inputs":[],"output":{"name":"size"}}],[11,"of","","",9,{"inputs":[{"name":"i64"},{"name":"i64"}],"output":{"name":"size"}}],[11,"partial_cmp","","",9,null],[11,"cmp","","",9,null],[8,"NoiseMapGeneratorBase","","Base trait for noise maps.",null,null],[10,"generate_chunk","","Generates a specific chunk of the noise map.",10,null],[10,"generate_sized_chunk","","",10,null],[10,"id","","",10,null],[8,"NoiseMapGenerator","","",null,null],[10,"set","","Set a property on the noise map.",11,null],[10,"get_size","","Returns the size of the noise map.",11,null],[11,"clone","","",12,null],[11,"fmt","","",12,null],[11,"default","","",12,{"inputs":[],"output":{"name":"noisemap"}}],[11,"clone","","",13,null],[11,"fmt","","",13,null],[11,"clone","","",14,null],[11,"fmt","","",14,null],[11,"new","","Construct a new noise map with the default properties.",12,{"inputs":[{"name":"t"}],"output":{"name":"noisemap"}}],[11,"generate_chunk","","",12,null],[11,"generate_sized_chunk","","",12,null],[11,"id","","",12,null],[11,"set","","",12,null],[11,"get_size","","",12,null],[11,"generate_chunk","","",13,null],[11,"generate_sized_chunk","","",13,null],[11,"id","","",13,null],[11,"set","","",13,null],[11,"get_size","","",13,null],[11,"generate_chunk","","",14,null],[11,"generate_sized_chunk","","",14,null],[11,"id","","",14,null],[11,"set","","",14,null],[11,"get_size","","",14,null],[11,"mul","","",12,null],[11,"mul","","",13,null],[11,"add","","",12,null],[11,"add","","",12,null],[11,"add","","",12,null],[11,"add","","",13,null],[11,"add","","",13,null],[11,"add","","",13,null],[11,"add","","",14,null],[11,"add","","",14,null],[11,"add","","",14,null],[0,"world","worldgen","For generating maps of specfic objects based on thresholds.",null,null],[3,"Size","worldgen::world","Sets the size of the generated chunks.",null,null],[12,"w","","",9,null],[12,"h","","",9,null],[3,"World","","The World class.",null,null],[0,"tile","","",null,null],[3,"Constraint","worldgen::world::tile","A constraint that limits when a tile should be chosen for\nthe generated world.",null,null],[3,"Tile","","Objects to generate in the world based on given constraints",null,null],[4,"ConstraintType","","",null,null],[13,"LT","","This constraint is satisfied when the noise value is\nlower than the given threshold.",15,null],[13,"GT","","This constraint is satisfied when the noise value is\ngreater than the given threshold.",15,null],[11,"clone","","",15,null],[11,"new","","",16,{"inputs":[{"name":"box"},{"name":"constrainttype"}],"output":{"name":"constraint"}}],[11,"satisfied_by","","Returns true is the given value would satisfy this constraint.",16,null],[11,"new","","Construct a new tile represented by the given object.",17,{"inputs":[{"name":"t"}],"output":{"name":"tile"}}],[11,"when","","Adds a constraint to the tile.",17,null],[11,"value","","Returns the value this tile is represented by.",17,null],[11,"satisfied_by","","Returns true if the given value would satisfy all of this tile's\nconstraints.",17,null],[11,"default","worldgen::world","",18,{"inputs":[],"output":{"name":"world"}}],[11,"new","","Constructs a new world using a given noisemap",18,{"inputs":[],"output":{"name":"world"}}],[11,"add","","Add a tile definition to the world",18,null],[11,"set","","Set a property on the world",18,null],[11,"set_size","","",18,null],[11,"generate","","",18,null],[14,"constraint!","worldgen","",null,null]],"paths":[[3,"Octaves"],[3,"Frequency"],[3,"Persistence"],[3,"Lacunarity"],[3,"PerlinNoise"],[3,"CoherentNoise"],[8,"NoiseProvider"],[3,"Seed"],[3,"Step"],[3,"Size"],[8,"NoiseMapGeneratorBase"],[8,"NoiseMapGenerator"],[3,"NoiseMap"],[3,"ScaledNoiseMap"],[3,"NoiseMapCombination"],[4,"ConstraintType"],[3,"Constraint"],[3,"Tile"],[3,"World"]]}; initSearch(searchIndex);