diff --git a/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs b/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs index ff46c824..378cf7f3 100644 --- a/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs +++ b/app/MindWork AI Studio/Tools/PluginSystem/PluginBase.cs @@ -12,7 +12,7 @@ public abstract class PluginBase private readonly IReadOnlyCollection baseIssues; protected readonly LuaState state; - protected List pluginIssues = []; + protected readonly List pluginIssues = []; /// /// The type of this plugin. @@ -177,7 +177,7 @@ public abstract class PluginBase /// The error message, when the ID could not be read. /// The read ID. /// True, when the ID could be read successfully. - public bool TryInitId(out string message, out Guid id) + private bool TryInitId(out string message, out Guid id) { if (!this.state.Environment["ID"].TryRead(out var idText)) { @@ -209,7 +209,7 @@ public abstract class PluginBase /// The error message, when the name could not be read. /// The read name. /// True, when the name could be read successfully. - public bool TryInitName(out string message, out string name) + private bool TryInitName(out string message, out string name) { if (!this.state.Environment["NAME"].TryRead(out name)) { @@ -234,7 +234,7 @@ public abstract class PluginBase /// The error message, when the description could not be read. /// The read description. /// True, when the description could be read successfully. - public bool TryInitDescription(out string message, out string description) + private bool TryInitDescription(out string message, out string description) { if (!this.state.Environment["DESCRIPTION"].TryRead(out description)) { @@ -259,7 +259,7 @@ public abstract class PluginBase /// The error message, when the version could not be read. /// The read version. /// True, when the version could be read successfully. - public bool TryInitVersion(out string message, out PluginVersion version) + private bool TryInitVersion(out string message, out PluginVersion version) { if (!this.state.Environment["VERSION"].TryRead(out var versionText)) { @@ -291,7 +291,7 @@ public abstract class PluginBase /// The error message, when the authors could not be read. /// The read authors. /// True, when the authors could be read successfully. - public bool TryInitAuthors(out string message, out string[] authors) + private bool TryInitAuthors(out string message, out string[] authors) { if (!this.state.Environment["AUTHORS"].TryRead(out var authorsTable)) { @@ -322,7 +322,7 @@ public abstract class PluginBase /// The error message, when the support contact could not be read. /// The read support contact. /// True, when the support contact could be read successfully. - public bool TryInitSupportContact(out string message, out string contact) + private bool TryInitSupportContact(out string message, out string contact) { if (!this.state.Environment["SUPPORT_CONTACT"].TryRead(out contact)) { @@ -347,7 +347,7 @@ public abstract class PluginBase /// The error message, when the source URL could not be read. /// The read source URL. /// True, when the source URL could be read successfully. - public bool TryInitSourceURL(out string message, out string url) + private bool TryInitSourceURL(out string message, out string url) { if (!this.state.Environment["SOURCE_URL"].TryRead(out url)) { @@ -373,7 +373,7 @@ public abstract class PluginBase /// The error message, when the categories could not be read. /// The read categories. /// True, when the categories could be read successfully. - public bool TryInitCategories(out string message, out PluginCategory[] categories) + private bool TryInitCategories(out string message, out PluginCategory[] categories) { if (!this.state.Environment["CATEGORIES"].TryRead(out var categoriesTable)) {