refactor: reorganize engine-based structure and add agent rules

- 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/ の再帰配置に対応
This commit is contained in:
armonica committed 2026-10-07 02:30:49 +09:00
1 parent 0d11039ee9
commit 8cea2a147d
47 files changed
+2976 -176

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
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);
}
}