using PluginAPI.Core;
using PluginAPI.Enums;
using PluginAPI.Core.Attributes;
using PlayerRoles.Voice;

namespace PluginAPI.Events
{
	public class PlayerUsingIntercomEvent : IEventArguments
	{
		public ServerEventType BaseType { get; } = ServerEventType.PlayerUsingIntercom;
		[EventArgument]
		public Player Player { get; }
		[EventArgument]
		public IntercomState IntercomState { get; }

		public PlayerUsingIntercomEvent(ReferenceHub hub, IntercomState state)
		{
			Player = Player.Get(hub);
			IntercomState = state;
		}

		PlayerUsingIntercomEvent() { }
	}
}
