public WorldGenerator(World.Utils.WorldProperty _WrldProps) { WrldProps = _WrldProps; Rnd = new Random(_WrldProps.Seed); FastRnd = new GameMath.FastRandom(_WrldProps.Seed); regionGenerator = new RegionGenerator(this); }
private void CreateWorld() { World.Utils.WorldProperty wrldp = new World.Utils.WorldProperty() { WorldName = NewWrldNameTextBox.Text, Seed = int.Parse(NewWrldSeedTextBox.Text) }; Generator.WorldGenerator Gen = new Generator.WorldGenerator(wrldp); WorldScene wrldsc = Gen.Generate(); wrldsc.Initialize(); SceneManager.StartGame(wrldsc); }