diff --git a/ImperatorToCK3/CK3/Characters/Character.cs b/ImperatorToCK3/CK3/Characters/Character.cs index b33762073..e33ee6c89 100644 --- a/ImperatorToCK3/CK3/Characters/Character.cs +++ b/ImperatorToCK3/CK3/Characters/Character.cs @@ -156,7 +156,7 @@ public string? DeathReason { public IDictionary PrisonerIds { get; } = new Dictionary(); // - public DNA? DNA { get; set; } + internal DNA? DNA { get; set; } public Imperator.Characters.Character? ImperatorCharacter { get; set; } @@ -355,7 +355,7 @@ Configuration config } } - public Character( + internal Character( Imperator.Characters.Character impCharacter, CharacterCollection characters, ReligionMapper religionMapper, diff --git a/ImperatorToCK3/CK3/Characters/CharacterCollection.cs b/ImperatorToCK3/CK3/Characters/CharacterCollection.cs index 678bc510f..363603eee 100644 --- a/ImperatorToCK3/CK3/Characters/CharacterCollection.cs +++ b/ImperatorToCK3/CK3/Characters/CharacterCollection.cs @@ -27,7 +27,7 @@ namespace ImperatorToCK3.CK3.Characters; public sealed partial class CharacterCollection : ConcurrentIdObjectCollection { - public void ImportImperatorCharacters( + internal void ImportImperatorCharacters( Imperator.World impWorld, ReligionMapper religionMapper, CultureMapper cultureMapper, @@ -811,7 +811,7 @@ public void GenerateSuccessorsForOldCharacters(Title.LandedTitles titles, Cultur }); } - public void ConvertImperatorCharacterDNA(DNAFactory dnaFactory) { + internal void ConvertImperatorCharacterDNA(DNAFactory dnaFactory) { Logger.Info("Converting Imperator character DNA to CK3..."); foreach (var character in this) { if (character.ImperatorCharacter is null) { diff --git a/ImperatorToCK3/CK3/Characters/DNA.cs b/ImperatorToCK3/CK3/Characters/DNA.cs index 28f1adde9..b93e6fb06 100644 --- a/ImperatorToCK3/CK3/Characters/DNA.cs +++ b/ImperatorToCK3/CK3/Characters/DNA.cs @@ -4,8 +4,8 @@ namespace ImperatorToCK3.CK3.Characters; -public sealed class DNA { - public sealed class PaletteCoordinates { +internal sealed class DNA { + internal sealed class PaletteCoordinates { // hair, skin and eye color palettes are 256x256 public int X { get; init; } = 128; public int Y { get; init; } = 128; @@ -32,9 +32,9 @@ public IEnumerable DNALines { public DNA( string id, - IDictionary colorDNAValues, - IDictionary morphDNAValues, - IDictionary accessoryDNAValues + Dictionary colorDNAValues, + Dictionary morphDNAValues, + Dictionary accessoryDNAValues ) { Id = id; this.colorDNAValues = new(colorDNAValues); diff --git a/ImperatorToCK3/CK3/Characters/DNAFactory.cs b/ImperatorToCK3/CK3/Characters/DNAFactory.cs index b9e26a451..fa714974f 100644 --- a/ImperatorToCK3/CK3/Characters/DNAFactory.cs +++ b/ImperatorToCK3/CK3/Characters/DNAFactory.cs @@ -13,7 +13,7 @@ namespace ImperatorToCK3.CK3.Characters; -public sealed class DNAFactory { +internal sealed class DNAFactory { private readonly IPixelCollection irHairPalettePixels; private readonly IPixelCollection irSkinPalettePixels; private readonly IPixelCollection irEyePalettePixels; @@ -69,7 +69,7 @@ public DNAFactory(ModFilesystem irModFS, ModFilesystem ck3ModFS) { BuildColorConversionCaches(ck3HairPalettePixels, ck3SkinPalettePixels, ck3EyePalettePixels); } - public DNA GenerateDNA(Imperator.Characters.Character irCharacter, PortraitData irPortraitData) { + internal DNA GenerateDNA(Imperator.Characters.Character irCharacter, PortraitData irPortraitData) { var id = $"dna_{irCharacter.Id}"; var colorDNAValues = new Dictionary(); @@ -463,7 +463,7 @@ IPixelCollection ck3EyePalettePixels private static void BuildColorConversionCache( IPixelCollection ck3PalettePixels, - IDictionary, DNA.PaletteCoordinates> ck3ColorToCoordinatesDict + ConcurrentDictionary, DNA.PaletteCoordinates> ck3ColorToCoordinatesDict ) { foreach (var pixel in ck3PalettePixels) { var color = pixel.ToColor();