/
IVoiceChannel.cs
68 lines (57 loc) · 2.26 KB
/
IVoiceChannel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
namespace AltV.Net.Elements.Entities
{
public interface IVoiceChannel : IBaseObject
{
IntPtr VoiceChannelNativePointer { get; }
/// <summary>
/// Adds the player to the voice channel
/// </summary>
/// <param name="player">The player</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
void AddPlayer(IPlayer player);
/// <summary>
/// Removes the player from the voice channel
/// </summary>
/// <param name="player">The player</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
void RemovePlayer(IPlayer player);
/// <summary>
/// Mutes the player in the voice channel
/// </summary>
/// <param name="player">The player</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
void MutePlayer(IPlayer player);
/// <summary>
/// Unmutes the player in the voice channel
/// </summary>
/// <param name="player">The player</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
void UnmutePlayer(IPlayer player);
/// <summary>
/// Returns if the player is inside the voice channel
/// </summary>
/// <param name="player">The player</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
bool HasPlayer(IPlayer player);
/// <summary>
/// Returns if the player is muted in the voice channel
/// </summary>
/// <param name="player">The player</param>
/// <exception cref="EntityRemovedException">This entity was removed</exception>
bool IsPlayerMuted(IPlayer player);
/// <summary>
/// Returns if the voice channel is spatial
/// </summary>
bool IsSpatial { get; }
/// <summary>
/// Returns the maximum distance
/// </summary>
float MaxDistance { get; }
uint Filter { get; set; }
int Priority { get; set; }
IReadOnlyCollection<IPlayer> Players { get; }
ulong PlayerCount { get; }
}
}