using PluginAPI.Core;
using PluginAPI.Enums;
using PluginAPI.Core.Attributes;

namespace PluginAPI.Events
{
	public class PlayerReportEvent : IEventArguments
	{
		public ServerEventType BaseType { get; } = ServerEventType.PlayerReport;
		[EventArgument]
		public Player Player { get; }
		[EventArgument]
		public Player Target { get; }
		[EventArgument]
		public string Reason { get; set; }

		public PlayerReportEvent(ReferenceHub hub, ReferenceHub target, string reason)
		{
			Player = Player.Get(hub);
			Target = Player.Get(target);
			Reason = reason;
		}

		PlayerReportEvent() { }
	}
}
