public UniverseGenerator(int seed)
    {
        randomSeed       = seed;
        currentStarCount = 0;
        maxStarColor     = Enum.GetValues(typeof(StarColor)).Length;
        maxPlanetType    = Enum.GetValues(typeof(PlanetType)).Length;
        maxRace          = Enum.GetValues(typeof(Race)).Length;
        maxHullClass     = Enum.GetValues(typeof(HullClass)).Length;

        universe = new UniverseManifest();
        universe.constellations = new Dictionary <Vector3, ConstellationManifest>();
        universe.bounds         = new Bounds(Vector3.zero, Vector3.zero);
    }
    public UniverseGenerator(int seed)
    {
        randomSeed = seed;
        currentStarCount = 0;
        maxStarColor = Enum.GetValues(typeof(StarColor)).Length;
        maxPlanetType = Enum.GetValues(typeof(PlanetType)).Length;
        maxRace = Enum.GetValues(typeof(Race)).Length;
        maxHullClass = Enum.GetValues(typeof(HullClass)).Length;

        universe = new UniverseManifest();
        universe.constellations = new Dictionary<Vector3, ConstellationManifest>();
        universe.bounds = new Bounds(Vector3.zero, Vector3.zero);
    }
Exemple #3
0
 void Awake()
 {
     DontDestroyOnLoad(this);
     LoadModules();
     LoadEffects();
     LoadPlanets();
     LoadMapStars();
     LoadLocalStars();
     LoadFleetShips();
     LoadProjectiles();
     universeGenerator = new UniverseGenerator(1);
     universeManifest  = universeGenerator.universe;
 }
Exemple #4
0
 void Awake()
 {
     DontDestroyOnLoad(this);
     LoadModules();
     LoadEffects();
     LoadPlanets();
     LoadMapStars();
     LoadLocalStars();
     LoadFleetShips();
     LoadProjectiles();
     universeGenerator = new UniverseGenerator(1);
     universeManifest = universeGenerator.universe;
 }