Delete faction legacy ID projection
This commit is contained in:
parent
c5626561a7
commit
5c691ea85c
6 changed files with 9 additions and 19 deletions
|
|
@ -10,7 +10,6 @@ using Unity.Mathematics;
|
|||
[Inspectable]
|
||||
public class Faction : INamedEntry
|
||||
{
|
||||
public Guid ID = Guid.NewGuid();
|
||||
public string FactionKey;
|
||||
|
||||
[Inspectable]
|
||||
|
|
|
|||
|
|
@ -261,7 +261,6 @@ public class Galaxy
|
|||
|
||||
return new Faction
|
||||
{
|
||||
ID = ParseLegacyId(corporation.LegacyId, nameof(corporation.LegacyId), corporation.Name),
|
||||
FactionKey = corporation.CorporationKey,
|
||||
Name = corporation.Name,
|
||||
ShortName = corporation.ShortName,
|
||||
|
|
@ -272,16 +271,6 @@ public class Galaxy
|
|||
};
|
||||
}
|
||||
|
||||
private static Guid ParseLegacyId(string legacyId, string fieldName, string ownerName)
|
||||
{
|
||||
if (Guid.TryParse(legacyId, out var parsed) && parsed != Guid.Empty)
|
||||
{
|
||||
return parsed;
|
||||
}
|
||||
|
||||
throw new InvalidOperationException($"Typed catalog corporation {ownerName} has invalid {fieldName} '{legacyId}'.");
|
||||
}
|
||||
|
||||
private void PlaceFactionsMain(int bossCount, Action<string> progressCallback = null)
|
||||
{
|
||||
progressCallback?.Invoke("Finding Chokepoints");
|
||||
|
|
|
|||
Loading…
Reference in a new issue