2020-03-22 19:05:26 +00:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using MessagePack;
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
2020-03-27 01:53:03 +00:00
|
|
|
|
[RethinkTable("Galaxy")]
|
2020-03-22 19:05:26 +00:00
|
|
|
|
[MessagePackObject]
|
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
|
public class GlobalData : DatabaseEntry
|
|
|
|
|
|
{
|
|
|
|
|
|
[InspectableField] [JsonProperty("targetPersistenceDuration")] [Key(1)]
|
2020-03-27 01:53:03 +00:00
|
|
|
|
public float TargetPersistenceDuration = 3;
|
2020-03-22 19:05:26 +00:00
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("heatRadiationPower")] [Key(2)]
|
2020-03-27 01:53:03 +00:00
|
|
|
|
public float HeatRadiationPower = 1;
|
2020-03-22 19:05:26 +00:00
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("heatRadiationMultiplier")] [Key(3)]
|
2020-03-27 01:53:03 +00:00
|
|
|
|
public float HeatRadiationMultiplier = 1;
|
2020-03-22 19:05:26 +00:00
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("radiusPower")] [Key(4)]
|
|
|
|
|
|
public float RadiusPower = 1.75f;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("massFloor")] [Key(5)]
|
|
|
|
|
|
public float MassFloor = 1;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("sunMass")] [Key(6)]
|
|
|
|
|
|
public float SunMass = 10000;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("gasGiantMass")] [Key(7)]
|
|
|
|
|
|
public float GasGiantMass = 2000;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("dockingDistance")] [Key(8)]
|
|
|
|
|
|
public float DockingDistance = 10;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("satelliteCreationMassFloor")] [Key(9)]
|
|
|
|
|
|
public float SatelliteCreationMassFloor = 100;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("satelliteCreationProbability")] [Key(10)]
|
|
|
|
|
|
public float SatelliteCreationProbability = .25f;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("binaryCreationProbability")] [Key(11)]
|
|
|
|
|
|
public float BinaryCreationProbability = .25f;
|
|
|
|
|
|
|
|
|
|
|
|
[InspectableField] [JsonProperty("rosetteProbability")] [Key(12)]
|
|
|
|
|
|
public float RosetteProbability = .25f;
|
|
|
|
|
|
}
|