Files
GameLauncher/Engines/Common/IEngineModule.cs
T

29 lines
1.1 KiB
C#

using GameLauncher.Models;
namespace GameLauncher.Engines.Common
{
/// <summary>
/// Common contract for engine-specific detection, mod application,
/// and external tool path resolution.
/// Implemented once per supported game engine so that engine handling
/// is unified and any single engine's hacks cannot affect another engine.
/// </summary>
public interface IEngineModule
{
/// <summary>Engine identifier (e.g. "Rgss", "Wolf", "Unity").</summary>
string EngineName { get; }
/// <summary>Determines whether the given game directory belongs to this engine.</summary>
bool Detect(string gameDirectory);
/// <summary>Applies the mod for this engine to the specified game.</summary>
bool ApplyMod(string gameDirectory, ModPluginDefinition plugin);
/// <summary>Returns whether the mod has already been applied.</summary>
bool IsModApplied(string gameDirectory);
/// <summary>Returns the absolute path of an engine-specific external tool.</summary>
string ResolveToolPath(string toolFileName);
}
}