Corporation Creation Screen
Added UI for creating a corporation; selecting a parent and choosing a name
This commit is contained in:
parent
17673cd264
commit
98371fc453
42 changed files with 4501 additions and 401 deletions
|
|
@ -109,6 +109,9 @@ public class MegaCorporation : DatabaseEntry, INamedEntry
|
|||
|
||||
[InspectableDatabaseLink(typeof(BlueprintData)), JsonProperty("initialTechs"), Key(6)]
|
||||
public List<Guid> InitialTechnologies = new List<Guid>();
|
||||
|
||||
[JsonProperty("parent"), Key(7)]
|
||||
public Guid HomeZone;
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
{
|
||||
|
|
|
|||
|
|
@ -227,6 +227,12 @@ public class PersonalityAttribute : DatabaseEntry, INamedEntry
|
|||
[InspectableField, JsonProperty("name"), Key(1)]
|
||||
public string Name;
|
||||
|
||||
[InspectableField, JsonProperty("low"), Key(2)]
|
||||
public string LowName;
|
||||
|
||||
[InspectableField, JsonProperty("high"), Key(3)]
|
||||
public string HighName;
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
{
|
||||
get => Name;
|
||||
|
|
|
|||
|
|
@ -18,16 +18,19 @@ public class ZoneData : DatabaseEntry, INamedEntry
|
|||
[JsonProperty("radius"), Key(3)]
|
||||
public float Radius = 2000;
|
||||
|
||||
[JsonProperty("visited"), Key(4)]
|
||||
[JsonProperty("mass"), Key(4)]
|
||||
public float Mass = 10000;
|
||||
|
||||
[JsonProperty("visited"), Key(5)]
|
||||
public bool Visited;
|
||||
|
||||
[JsonProperty("wormholes"), Key(5)]
|
||||
[JsonProperty("wormholes"), Key(6)]
|
||||
public List<Guid> Wormholes = new List<Guid>();
|
||||
|
||||
[JsonProperty("planets"), Key(6)]
|
||||
[JsonProperty("planets"), Key(7)]
|
||||
public Guid[] Planets;// = new List<Guid>();
|
||||
|
||||
[JsonProperty("orbits"), Key(7)]
|
||||
[JsonProperty("orbits"), Key(8)]
|
||||
public List<Guid> Orbits = new List<Guid>();
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ public class ZoneGenerator
|
|||
mapLayers
|
||||
.First(m => m.Name == "Mass")
|
||||
.Evaluate(zone.Position, context.GlobalData)));
|
||||
zone.Mass = zoneMass;
|
||||
|
||||
//Debug.Log($"Generating zone at position {zone.Position} with radius {zoneRadius} and mass {zoneMass}");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue