Files
GameLauncher/Services/Codecs/ISaveDataCodec.cs
T

30 lines
1.3 KiB
C#
Raw Blame History

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