using InventorySystem.Items.Radio;

using PluginAPI.Core;
using PluginAPI.Enums;
using PluginAPI.Core.Attributes;
using static InventorySystem.Items.Radio.RadioMessages;

namespace PluginAPI.Events
{
	public class PlayerChangeRadioRangeEvent : IEventArguments
	{
		public ServerEventType BaseType { get; } = ServerEventType.PlayerChangeRadioRange;
		[EventArgument]
		public Player Player { get; }
		[EventArgument]
		public RadioItem Radio { get; }
		[EventArgument]
		public RadioRangeLevel Range { get; set; }

		public PlayerChangeRadioRangeEvent(ReferenceHub hub, RadioItem radio, RadioRangeLevel range)
		{
			Player = Player.Get(hub);
			Radio = radio;
			Range = range;
		}

		PlayerChangeRadioRangeEvent() { }
	}
}
