fix a million warnings

This commit is contained in:
goat 2024-06-30 00:58:04 +02:00
parent b752d958f7
commit b425bb3e49
26 changed files with 1027 additions and 1019 deletions

View file

@ -72,9 +72,9 @@ internal static class PluginValidator
var cmdManager = Service<CommandManager>.Get();
foreach (var cmd in cmdManager.GetHandlersByAssemblyName(plugin.InternalName).Where(c => c.Key.Item2.ShowInHelp))
foreach (var cmd in cmdManager.GetHandlersByAssemblyName(plugin.InternalName).Where(c => c.Key.CommandInfo.ShowInHelp))
{
if (string.IsNullOrEmpty(cmd.Key.Item2.HelpMessage))
if (string.IsNullOrEmpty(cmd.Key.CommandInfo.HelpMessage))
problems.Add(new CommandWithoutHelpTextProblem(cmd.Value));
}

View file

@ -18,13 +18,6 @@ public interface IFateTable : IReadOnlyCollection<IFate>
/// Gets the amount of currently active Fates.
/// </summary>
public int Length { get; }
/// <summary>
/// Gets a value indicating whether this Fate is still valid in memory.
/// </summary>
/// <param name="fate">The fate to check.</param>
/// <returns>True or false.</returns>
public bool IsValid(IFate fate);
/// <summary>
/// Get an actor at the specified spawn index.
@ -33,6 +26,13 @@ public interface IFateTable : IReadOnlyCollection<IFate>
/// <returns>A <see cref="Fate"/> at the specified spawn index.</returns>
public IFate? this[int index] { get; }
/// <summary>
/// Gets a value indicating whether this Fate is still valid in memory.
/// </summary>
/// <param name="fate">The fate to check.</param>
/// <returns>True or false.</returns>
public bool IsValid(IFate fate);
/// <summary>
/// Gets the address of the Fate at the specified index of the fate table.
/// </summary>wo

View file

@ -175,7 +175,7 @@ public interface ITextureProvider
/// <remarks>
/// <para>The following functions support the files of the container types pointed by yielded values.</para>
/// <ul>
/// <li><see cref="GetFromFile"/></li>
/// <li><see cref="GetFromFile(string)"/> and <see cref="GetFromFile(FileInfo)"/></li>
/// <li><see cref="GetFromManifestResource"/></li>
/// <li><see cref="CreateFromImageAsync(ReadOnlyMemory{byte},string?,CancellationToken)"/></li>
/// <li><see cref="CreateFromImageAsync(Stream,bool,string?,CancellationToken)"/></li>