Skip to content

Commit 75acead

Browse files
committed
Add publicizer ignored references option to configuration
Used to prevent specified references from being publicized
1 parent 876c9be commit 75acead

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Configuration/OxideConfig.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ public class CompilerOptions
5555
/// </summary>
5656
[JsonProperty(PropertyName = "Enable Publicizer")]
5757
public bool? Publicize { get; set; } = true;
58+
59+
/// <summary>
60+
/// List of references to ignore when publicizing
61+
/// </summary>
62+
[JsonProperty(PropertyName = "Ignored Publicizer References")]
63+
public List<string> IgnoredPublicizerReferences { get; set; } = new List<string>();
5864
}
5965

6066
[JsonObject]
@@ -245,6 +251,12 @@ private bool InitializeDefaultValues()
245251
changed = true;
246252
}
247253

254+
if (Compiler.IgnoredPublicizerReferences == null)
255+
{
256+
Compiler.IgnoredPublicizerReferences = new List<string>();
257+
changed = true;
258+
}
259+
248260
return changed;
249261
}
250262
}

0 commit comments

Comments
 (0)