Resolve runtime factions through typed galaxy projection
This commit is contained in:
parent
de36150dc2
commit
c43d7b8f67
5 changed files with 47 additions and 9 deletions
|
|
@ -90,7 +90,7 @@ public static class EntitySerializer
|
|||
private static void Restore(ItemManager itemManager, Zone zone, EntityPack pack, Entity entity, bool instantiate = false)
|
||||
{
|
||||
entity.Name = pack.Name;
|
||||
entity.Faction = itemManager.GetCatalogEntry<Faction>(pack.Faction);
|
||||
entity.Faction = zone?.Galaxy?.ResolveFaction(pack.Faction);
|
||||
entity.Children = pack.Children.Select(c =>
|
||||
{
|
||||
var child = Unpack(itemManager, zone, c, instantiate);
|
||||
|
|
|
|||
Loading…
Reference in a new issue