GameMode/Voice/IVoiceFilter.cs

Interface used by PlayerVoiceComponent to determine which network connections should be excluded from receiving voice data. It exposes a single method GetExcludeFilter that returns IEnumerable<Connection> of listeners to exclude.

namespace KOTH;

/// <summary>
/// One in a scene, used by <see cref="PlayerVoiceComponent"/> to dictate rules around who can broadcast their voices to who.
/// </summary>
public interface IVoiceFilter
{
	/// <summary>
	/// Should we exclude this potential listener from hearing our voice?
	/// </summary>
	/// <returns></returns>
	IEnumerable<Connection> GetExcludeFilter();
}