Skip to content

Commit

Permalink
Add some SensorProfile config to jump points
Browse files Browse the repository at this point in the history
  • Loading branch information
behindcurtain3 committed Apr 5, 2024
1 parent 01b7180 commit 83055e3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Pulsar4X/GameEngine/Engine/Factories/JPSurveyFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ internal static void GenerateJPSurveyPoints(StarSystem system)
// TODO: Make these settings load from GalaxyGen settings.
var ringSettings = new Dictionary<double, int>
{
{ Distance.AuToMt(2), 6 }
{ Distance.AuToMt(2), 6 },
{ Distance.AuToMt(10), 8 }
};

var surveyPoints = new List<ProtoEntity>();
foreach (KeyValuePair<double, int> ringSetting in ringSettings)
int numGenerated = 0;
foreach (var (distance, numPoints) in ringSettings)
{
double distance = ringSetting.Key;
int numPoints = ringSetting.Value;

surveyPoints.AddRange(GenerateSurveyRing(distance, numPoints));
surveyPoints.AddRange(GenerateSurveyRing(distance, numPoints, numGenerated));
numGenerated += numPoints;
}

foreach (ProtoEntity surveyPoint in surveyPoints)
Expand Down Expand Up @@ -63,6 +63,8 @@ private static ProtoEntity CreateSurveyPoint(double x, double y, int nameNumber)
var nameDB = new NameDB($"Survey Point #{nameNumber}");
//for testing purposes
var sensorProfileDB = new SensorProfileDB();
sensorProfileDB.EmittedEMSpectra.Add(new Sensors.EMWaveForm(0, 500, 1000), 1E12);
sensorProfileDB.Reflectivity = 0;

var protoEntity = new ProtoEntity(new List<BaseDataBlob>() { surveyDB, posDB, nameDB, sensorProfileDB });

Expand Down

0 comments on commit 83055e3

Please sign in to comment.