using System.Collections.Generic;
using GameLauncher.Models;
namespace GameLauncher.Services.Codecs
{
///
/// バイナリ/暗号化セーブデータのGUI編集用デコーダー・エンコーダーインターフェース
///
public interface ISaveDataCodec
{
/// コーデックの識別名称(例: "Easy Save 3 (ES3)", "YU-RIS セーブデータ")
string CodecName { get; }
/// このコーデックで指定ファイルを処理可能か判定
bool CanHandle(UnityGameItem game, SaveFileEntry file);
/// セーブファイルからGUI編集用プロパティ一覧をロード・解析
List LoadProperties(string filePath, string? optionalPassword = null);
/// GUI編集されたプロパティ一覧をファイルへ再エンコード・保存
bool SaveProperties(string filePath, List properties, string? optionalPassword = null);
/// 復号にパスワードやキーが必要かどうか
bool RequiresPassword { get; }
/// パスワード入力時の案内メッセージ
string? PasswordPromptMessage { get; }
}
}