public bool MuteSpeaker(IVoiceClient speaker, bool muted)
        {
            if (speaker == null)
            {
                throw new ArgumentNullException(nameof(speaker));
            }

            return(RunWhenConnected(() => Server.NativeWrapper.MuteClientForClient(speaker, this, muted)));
        }
        public bool IsSpeakerMuted(IVoiceClient speaker)
        {
            if (speaker == null)
            {
                throw new ArgumentNullException(nameof(speaker));
            }

            return(RunWhenConnected(() => Server.NativeWrapper.IsClientMutedForClient(speaker, this)));
        }
Beispiel #3
0
 public bool MuteClientForAll(IVoiceClient client, bool muted)
 {
     return(Mock.Object.MuteClientForAll(client, muted));
 }
Beispiel #4
0
 public bool MuteClientForClient(IVoiceClient speaker, IVoiceClient listener, bool muted)
 {
     return(NativeLibary.JV_MuteClientForClient(speaker.Handle.Identifer, listener.Handle.Identifer, muted));
 }
Beispiel #5
0
 public bool MuteClientForAll(IVoiceClient client, bool muted)
 {
     return(NativeLibary.JV_MuteClientForAll(client.Handle.Identifer, muted));
 }
 public bool SetClientVoiceRange(IVoiceClient client, float voiceRange)
 {
     return(NativeLibary.JV_SetClientVoiceRange(client.Handle.Identifer, voiceRange));
 }
 public bool RemoveClient(IVoiceClient client)
 {
     return(NativeLibary.JV_RemoveClient(client.Handle.Identifer));
 }
Beispiel #8
0
 public bool IsClientMutedForClient(IVoiceClient speaker, IVoiceClient listener)
 {
     return(Mock.Object.IsClientMutedForClient(speaker, listener));
 }
Beispiel #9
0
 public bool SetClientVoiceRange(IVoiceClient client, float voiceRange)
 {
     return(Mock.Object.SetClientVoiceRange(client, voiceRange));
 }
 public bool SetRelativeSpeakerPositionForListener(IVoiceClient listener, IVoiceClient speaker, Vector3 position)
 {
     return(NativeLibary.JV_SetRelativePositionForClient(listener.Handle.Identifer, speaker.Handle.Identifer, position.X, position.Y, position.Z));
 }
 public bool SetListenerPosition(IVoiceClient listener, Vector3 position, float rotation)
 {
     return(SetListenerPositions(new [] { listener.MakeClientPosition(position, rotation) }));
 }
 public bool ResetRelativeSpeakerPositionForListener(IVoiceClient listener, IVoiceClient speaker)
 {
     return(NativeLibary.JV_ResetRelativePositionForClient(listener.Handle.Identifer, speaker.Handle.Identifer));
 }
 public bool ResetAllRelativePositionsForListener(IVoiceClient listener)
 {
     return(NativeLibary.JV_ResetAllRelativePositions(listener.Handle.Identifer));
 }
 public bool ResetRelativeSpeakerPosition(IVoiceClient speaker)
 {
     return(RunWhenConnected(() => Server.NativeWrapper.ResetRelativeSpeakerPositionForListener(this, speaker)));
 }
 public bool SetRelativeSpeakerPosition(IVoiceClient speaker, Vector3 position)
 {
     return(RunWhenConnected(() => Server.NativeWrapper.SetRelativeSpeakerPositionForListener(this, speaker, position)));
 }
Beispiel #16
0
 public bool IsClientMutedForAll(IVoiceClient client)
 {
     return(Mock.Object.IsClientMutedForAll(client));
 }
Beispiel #17
0
 public bool MuteClientForClient(IVoiceClient speaker, IVoiceClient listener, bool muted)
 {
     return(Mock.Object.MuteClientForClient(speaker, listener, muted));
 }
Beispiel #18
0
 public bool SetListenerPosition(IVoiceClient listener, Vector3 position, float rotation)
 {
     return(Mock.Object.SetListenerPosition(listener, position, rotation));
 }
Beispiel #19
0
 public bool IsClientConnected(IVoiceClient client)
 {
     return(Mock.Object.IsClientConnected(client));
 }
Beispiel #20
0
 public bool SetRelativeSpeakerPositionForListener(IVoiceClient listener, IVoiceClient speaker, Vector3 position)
 {
     return(Mock.Object.SetRelativeSpeakerPositionForListener(listener, speaker, position));
 }
 public bool SetClientNickname(IVoiceClient client, string nickname)
 {
     return(NativeLibary.JV_SetClientNickname(client.Handle.Identifer, nickname));
 }
Beispiel #22
0
 public bool ResetRelativeSpeakerPositionForListener(IVoiceClient listener, IVoiceClient speaker)
 {
     return(Mock.Object.ResetRelativeSpeakerPositionForListener(listener, speaker));
 }
 public bool IsClientConnected(IVoiceClient client)
 {
     return(NativeLibary.JV_IsClientConnected(client.Handle.Identifer));
 }
Beispiel #24
0
 public bool ResetAllRelativePositionsForListener(IVoiceClient listener)
 {
     return(Mock.Object.ResetAllRelativePositionsForListener(listener));
 }
Beispiel #25
0
 public bool IsClientMutedForAll(IVoiceClient client)
 {
     return(NativeLibary.JV_IsClientMutedForAll(client.Handle.Identifer));
 }
Beispiel #26
0
 public bool RemoveClient(IVoiceClient client)
 {
     return(Mock.Object.RemoveClient(client));
 }
Beispiel #27
0
 public bool IsClientMutedForClient(IVoiceClient speaker, IVoiceClient listener)
 {
     return(NativeLibary.JV_IsClientMutedForClient(speaker.Handle.Identifer, listener.Handle.Identifer));
 }
Beispiel #28
0
 public bool SetClientNickname(IVoiceClient client, string nickname)
 {
     return(Mock.Object.SetClientNickname(client, nickname));
 }