Ejemplo n.º 1
0
 public void Create(System.Random GameRNG, Zenith.Database database, PlanetSettings planetSettings)
 {
     this.GameRNG   = GameRNG;
     PlanetSettings = planetSettings;
     Database       = database;
     StartCoroutine(GenWorldOnSecondThread(GameRNG));
 }
Ejemplo n.º 2
0
 void Update()
 {
     if (Input.anyKeyDown && !started)
     {
         started = true;
         Zenith.Database Database = new Zenith.Database().Load(GeneralManager.SetStatus);
         GeneralManager.Database = Database;
         switchStage.SwitchToStage(switchStage.SplashScreenStage, switchStage.MainMenuStage);
     }
 }
Ejemplo n.º 3
0
 public Planet(Zenith.Database database, PlanetSettings planetSettings, Random GameRNG)
 {
     Database        = database;
     PlanetSettings  = planetSettings;
     caves           = Mathf.Max(planetSettings.worldSize.x, planetSettings.worldSize.y) / 16;
     caveLengthBoost = planetSettings.caveLengthBoost;
     stonePockets    = Mathf.Max(planetSettings.worldSize.x, planetSettings.worldSize.y) / 32;
     blocks          = new Tile[planetSettings.worldSize.x, planetSettings.worldSize.y];
     blocksBG        = new Tile[planetSettings.worldSize.x, planetSettings.worldSize.y];
     GenHeight       = new int[planetSettings.worldSize.x];
     random          = GameRNG;
 }
Ejemplo n.º 4
0
 public void Initialize(Zenith.Database database)
 {
     Noise.Seed = GameSeed;
     Database   = database;
     random     = new Random(GameSeed);
 }