Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
AnakinRaW committed Dec 14, 2024
1 parent edefb10 commit f038dcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void InitializeServices(IServiceCollection serviceCollection)
serviceCollection.AddSingleton<IGameFactory>(sp => new GameFactory(sp));
//serviceCollection.AddSingleton<IModFactory>(sp => new ModFactory(sp));
serviceCollection.AddSingleton<IModIdentifierBuilder>(sp => new ModIdentifierBuilder(sp));
serviceCollection.AddSingleton<IModReferenceFinder>(sp => new ModFinder(sp));
serviceCollection.AddSingleton<IModFinder>(sp => new ModFinder(sp));
serviceCollection.AddSingleton<IModReferenceLocationResolver>(sp => new ModReferenceLocationResolver(sp));

serviceCollection.AddSingleton(sp => new ModDependencyResolver(sp));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace PG.StarWarsGame.Infrastructure.Services.Detection;
/// <summary>
/// Service to search for <see cref="IModReference"/>s.
/// </summary>
public interface IModReferenceFinder
public interface IModFinder
{
/// <summary>
/// Searches for <see cref="IModReference"/> for a given game.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,12 @@

namespace PG.StarWarsGame.Infrastructure.Services.Detection;

/// <summary>
/// Searches for <see cref="IModReference"/>s for a give <see cref="IGame"/>.
/// </summary>
internal class ModFinder : IModReferenceFinder
internal class ModFinder : IModFinder
{
private readonly ISteamGameHelpers _steamHelper;
private readonly IModIdentifierBuilder _idBuilder;
private readonly IModGameTypeResolver _gameTypeResolver;

/// <summary>
/// Creates a new instance.
/// </summary>
/// <param name="serviceProvider">The service provider</param>
public ModFinder(IServiceProvider serviceProvider)
{
if (serviceProvider == null)
Expand All @@ -33,13 +26,6 @@ public ModFinder(IServiceProvider serviceProvider)
_gameTypeResolver = serviceProvider.GetRequiredService<IModGameTypeResolver>();
}

/// <summary>
/// Searches mods for the given <paramref name="game"/>.
/// </summary>
/// <param name="game">The game which hosts the mods.</param>
/// <returns>A set of <see cref="IModReference"/>s.
/// The <see cref="IModReference.Identifier"/> either holds the absolute path or Steam Workshops ID.</returns>
/// <exception cref="GameException">If the <paramref name="game"/> is not installed.</exception>
public ISet<DetectedModReference> FindMods(IGame game)
{
if (game == null)
Expand Down

0 comments on commit f038dcc

Please sign in to comment.