namespace Wizard.Battle.Recovery;

public class NetworkBattleRecoveryRecordManager : RecoveryRecordManagerBase
{
	protected override string DefaultRecoveryFileName => "recovery_network.json";

	protected override OperationRecorderBase CreateOperationRecorder()
	{
		return new NetworkBattleOperationRecorder(_recoveryFilePath);
	}

	protected override void SetupRecorderEvents(OperationRecorderBase operationRecorder, BattleManagerBase battleMgr)
	{
		base.SetupRecorderEvents(operationRecorder, battleMgr);
		battleMgr.OperateMgr.OnBeforePlayerTurnEnd += operationRecorder.RecordTurnEnd;
	}
}
