Database Support
Refactored almost everything, but most importantly we now integrate with RethinkDB for game data.
This commit is contained in:
parent
5ffeb55214
commit
0b46d5ee39
839 changed files with 77349 additions and 112660 deletions
45
Assets/Scripts/ServerShared/GlobalData.cs
Normal file
45
Assets/Scripts/ServerShared/GlobalData.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
[MessagePackObject]
|
||||
[JsonObject(MemberSerialization.OptIn)]
|
||||
public class GlobalData : DatabaseEntry
|
||||
{
|
||||
[InspectableField] [JsonProperty("targetPersistenceDuration")] [Key(1)]
|
||||
public float TargetPersistenceDuration;
|
||||
|
||||
[InspectableField] [JsonProperty("heatRadiationPower")] [Key(2)]
|
||||
public float HeatRadiationPower;
|
||||
|
||||
[InspectableField] [JsonProperty("heatRadiationMultiplier")] [Key(3)]
|
||||
public float HeatRadiationMultiplier;
|
||||
|
||||
[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;
|
||||
}
|
||||
Loading…
Reference in a new issue