private string MakeAndRecordStarDesign(StarCategory cat, SystemDesirability desirability, out float systemOrbitSlotsStartRadius) {
     string designName = GetUniqueDesignName(cat.GetValueName());
     StarStat stat = MakeRandomStarStat(cat, desirability, out systemOrbitSlotsStartRadius);
     StarDesign design = new StarDesign(designName, stat);
     _gameMgr.CelestialDesigns.Add(design);
     return designName;
 }
Exemplo n.º 2
0
 public void Add(StarDesign design) {
     string designName = design.DesignName;
     D.Assert(!_starDesignsLookup.ContainsKey(designName));
     _starDesignsLookup.Add(designName, design);
     //D.Log("{0} added {1} {2}.", GetType().Name, design.GetType().Name, designName);
 }