using System;
using System.Collections.Generic;

namespace TeslaConsole.RedPlanet;

[Serializable]
internal class DamagedEvent : MissionEvent
{
	public readonly RPPlayer Damager;

	public readonly int DamageLoss;

	public readonly int PointsTransfered;

	public override IEnumerable<RPPlayer> InvolvedPilots => new RPPlayer[2] { ReportingPilot, Damager };

	public DamagedEvent(RPPlayer reportingPilot, TimeSpan missionTime, RPPlayer damager, int damageLoss, int pointsTransfered)
		: base(reportingPilot, missionTime)
	{
		Damager = damager;
		DamageLoss = damageLoss;
		PointsTransfered = pointsTransfered;
	}

	private DamagedEvent()
	{
	}
}
