- Engines/ 配下へエンジン別に再編 (Common/Rgss/Tkool/Tyrano/Wolf/Unity/Nwjs) - ゲーム個別処理を Engines/<Engine>/Games/<GameName>/ へ分離し、共通処理から明示呼び出し - 外部ツールを Engines/<Engine>/Tools/ へ移動し、AppPathHelper 経由で解決 - 旧 Tools/ 直下参照と不要な参照ファイル/バックアップを削除 - エージェント規則 AGENTS.md を追加し、README から参照 - publish.ps1 を Engines/<Engine>/Tools/ の再帰配置に対応
29 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|