public void SimLoop() { IRandGen rg = new RC4("Key"); //SqueezeSphere xform = new SqueezeSphere(world, rg.Fork()); //xform.Apply(1000000); ParticleDeposition xform = new ParticleDeposition(world, rg.Fork()); xform.Apply(0.1f, 60000000); Grid.Dump(world.Grid, world.GetLayer(World.Height), Console.Out); }
private void GenerateMap() { var mapGenerator = new ParticleDeposition { DropPoints = DropPoints, MaxParticles = MaxParticles, MinParticles = MinParticles, ParticleStabilityRadius = ParticleStabilityRadius, PassesCount = PassesCount }; var mapFactory = new MapFactory(mapGenerator) { DesertBelt = DesertBelt, FilterCount = FilterCount, MinHillsValue = MinHillsValue, MinMountainsValue = MinMountainsValue, PoleBelt = PoleBelt }; _terrainMap = mapFactory.CreateMap(_hexGrid.Width, _hexGrid.Height); CreateMap(); }