Delete faction legacy ID projection
This commit is contained in:
parent
c5626561a7
commit
5c691ea85c
6 changed files with 9 additions and 19 deletions
Binary file not shown.
|
|
@ -791,7 +791,10 @@ static void RequireTypedFactionShellLinks(string root)
|
|||
"ParseOptionalLegacyId",
|
||||
"GeonameFileLegacyId",
|
||||
"BossHullLegacyId",
|
||||
".BossHull != Guid.Empty"
|
||||
".BossHull != Guid.Empty",
|
||||
"public Guid ID",
|
||||
"ID = ParseLegacyId",
|
||||
"ParseLegacyId(corporation.LegacyId"
|
||||
};
|
||||
|
||||
var hits = checkedFiles
|
||||
|
|
|
|||
|
|
@ -117,8 +117,7 @@ GUID link fields.
|
|||
`Faction` equality, hashing, narrative constraints, sector display filtering,
|
||||
sector-map link/influence rendering, zone security ownership checks, and
|
||||
runtime faction-relationship ordering now use `FactionKey`. The legacy
|
||||
`Faction.ID` remains projection residue only until the temporary simulation
|
||||
shell is removed.
|
||||
`Faction.ID` projection field is deleted from the temporary simulation shell.
|
||||
Run checkpoint commit DTOs carry typed `OrbitKey`, `ParentOrbitKey`, and
|
||||
`BodyKey` only for zone orbit/body snapshots. The old pending-command
|
||||
`OrbitLegacyId`, `ParentLegacyId`, and `BodyLegacyId` fallback fields are
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -1025,8 +1025,8 @@ First Aetheria surfaces to publish:
|
|||
- Done: move temporary `Faction` equality, hashing, narrative constraints,
|
||||
sector display filtering, sector-map link/influence rendering, zone
|
||||
security ownership checks, and runtime faction-relationship ordering to
|
||||
`FactionKey`. `Faction.ID` is now projection residue rather than
|
||||
comparison/order authority.
|
||||
`FactionKey`. The legacy `Faction.ID` projection field is deleted from
|
||||
the temporary simulation shell.
|
||||
- Done: move package and canonical manufacturer/corporation/name-file lookup
|
||||
to typed keys (`ManufacturerKey`, `CorporationKey`, `GeonameFileKey`,
|
||||
and `NameFileKey`), and move loadout manufacturer-distance weighting to
|
||||
|
|
@ -1771,8 +1771,8 @@ First Aetheria surfaces to publish:
|
|||
boss-hull relationships use typed keys, not legacy GUID projection fields.
|
||||
- `Aetheria.State.Verify` guards temporary `Faction` identity: equality,
|
||||
hashing, ordering, narrative checks, sector filtering/rendering, and zone
|
||||
security checks must use `FactionKey`, leaving `Faction.ID` as projection
|
||||
residue only.
|
||||
security checks must use `FactionKey`; the legacy `Faction.ID` projection
|
||||
field may not return.
|
||||
- Unity batchmode compile returned cleanly after the runtime blueprint rename;
|
||||
live Unity source has no `EntityPack`, `ShipPack`, `OrbitalEntityPack`,
|
||||
`ZonePack`, `PackedContents`, `PackZone`, `EntitySerializer.Pack`, or
|
||||
|
|
|
|||
Loading…
Reference in a new issue