Skip to content

Commit 394e21a

Browse files
authored
Change public classes to internal across codebase (#2715)
1 parent 8903611 commit 394e21a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+62
-62
lines changed

.github/workflows/create_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ jobs:
112112
run: |
113113
dotnet tool install --global dotnet-innosetup --version 6.2.1
114114
cp Fronter.NET/Fronter.NET/Assets/converter.ico Publish/Assets/
115-
dotnet iscc --version
115+
iscc --version
116116
sed -i '5i\\#define MyAppVersion "${{ needs.create_release.outputs.tag }}"' ImperatorToCK3.iss
117117
cat ImperatorToCK3.iss
118-
dotnet iscc ImperatorToCK3.iss
118+
iscc ImperatorToCK3.iss
119119
- name: "Upload installer for Windows"
120120
id: upload-installer
121121
if: matrix.build == 'win-x64'

ImperatorToCK3/CK3/Armies/MenAtArmsCost.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace ImperatorToCK3.CK3.Armies;
66

77
[SerializationByProperties]
8-
public sealed partial class MenAtArmsCost : IPDXSerializable {
8+
internal sealed partial class MenAtArmsCost : IPDXSerializable {
99
[SerializedName("gold")] public double? Gold { get; set; }
1010
[SerializedName("piety")] public double? Piety { get; set; }
1111
[SerializedName("prestige")] public double? Prestige { get; set; }

ImperatorToCK3/CK3/Characters/Pregnancy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ImperatorToCK3.CK3.Characters;
44

5-
public sealed class Pregnancy {
5+
internal sealed class Pregnancy {
66
public string FatherId { get; init; }
77
public string MotherId { get; init; }
88
public Date BirthDate { get; init; }

ImperatorToCK3/CK3/Cultures/NameList.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
using System.Collections.Generic;
44
using System.Text.RegularExpressions;
55

6-
namespace ImperatorToCK3.CK3.Cultures;
6+
namespace ImperatorToCK3.CK3.Cultures;
77

8-
public sealed partial class NameList : IIdentifiable<string> {
8+
internal sealed partial class NameList : IIdentifiable<string> {
99
public string Id { get; }
1010
private readonly OrderedSet<string> maleNames = [];
1111
private readonly OrderedSet<string> femaleNames = [];

ImperatorToCK3/CK3/Dynasties/House.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace ImperatorToCK3.CK3.Dynasties;
77

88
[SerializationByProperties]
9-
public sealed partial class House : IPDXSerializable, IIdentifiable<string> {
9+
internal sealed partial class House : IPDXSerializable, IIdentifiable<string> {
1010
[NonSerialized] public string Id { get; }
1111

1212
[SerializedName("prefix")] public string? Prefix { get; private set; }

ImperatorToCK3/CK3/Legends/LegendSeed.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace ImperatorToCK3.CK3.Legends;
66

7-
public sealed class LegendSeed : IIdentifiable<string>, IPDXSerializable {
7+
internal sealed class LegendSeed : IIdentifiable<string>, IPDXSerializable {
88
public string Id { get; }
99
private StringOfItem Body { get; }
1010

ImperatorToCK3/CK3/Legends/LegendSeedCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace ImperatorToCK3.CK3.Legends;
88

9-
public sealed class LegendSeedCollection : ConcurrentIdObjectCollection<string, LegendSeed>, IPDXSerializable {
9+
internal sealed class LegendSeedCollection : ConcurrentIdObjectCollection<string, LegendSeed>, IPDXSerializable {
1010
public void LoadSeeds(ModFilesystem ck3ModFS) {
1111
Logger.Info("Loading legend seeds...");
1212

ImperatorToCK3/CK3/Localization/CK3LocBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace ImperatorToCK3.CK3.Localization;
77

8-
public class CK3LocBlock : IIdentifiable<string> { // TODO: add ILocBlock interface that both this and commonItems' LocBlock would implement.
8+
internal class CK3LocBlock : IIdentifiable<string> { // TODO: add ILocBlock interface that both this and commonItems' LocBlock would implement.
99
private readonly string baseLanguage;
1010
private readonly ConcurrentDictionary<string, (string, CK3LocType)> localizations = new();
1111

ImperatorToCK3/CK3/Provinces/ProvinceMappings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace ImperatorToCK3.CK3.Provinces;
2222
/// </para>
2323
/// <para>Now 6874 history is same as 6872 history.</para>
2424
/// </summary>
25-
public sealed class ProvinceMappings : Dictionary<ulong, ulong> {
25+
internal sealed class ProvinceMappings : Dictionary<ulong, ulong> {
2626
public ProvinceMappings(ModFilesystem ck3ModFS) {
2727
var parser = new Parser();
2828
RegisterKeys(parser);

ImperatorToCK3/CK3/Religions/DoctrineCategory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
using System.Collections.Generic;
44
using System.Collections.Immutable;
55

6-
namespace ImperatorToCK3.CK3.Religions;
6+
namespace ImperatorToCK3.CK3.Religions;
77

8-
public sealed class DoctrineCategory : IIdentifiable<string> {
8+
internal sealed class DoctrineCategory : IIdentifiable<string> {
99
public string Id { get; }
1010
public string? GroupId { get; private set; }
1111
public int NumberOfPicks { get; private set; } = 1;
1212

13-
private readonly OrderedSet<string> doctrineIds = new();
13+
private readonly OrderedSet<string> doctrineIds = [];
1414
public IReadOnlyCollection<string> DoctrineIds => doctrineIds.ToImmutableArray();
1515

1616
public DoctrineCategory(string id, BufferedReader categoryReader) {

0 commit comments

Comments
 (0)