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)));
        }
示例#3
0
 public bool MuteClientForAll(IVoiceClient client, bool muted)
 {
     return(Mock.Object.MuteClientForAll(client, muted));
 }
示例#4
0
 public bool MuteClientForClient(IVoiceClient speaker, IVoiceClient listener, bool muted)
 {
     return(NativeLibary.JV_MuteClientForClient(speaker.Handle.Identifer, listener.Handle.Identifer, muted));
 }
示例#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));
 }
示例#8
0
 public bool IsClientMutedForClient(IVoiceClient speaker, IVoiceClient listener)
 {
     return(Mock.Object.IsClientMutedForClient(speaker, listener));
 }
示例#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)));
 }
示例#16
0
 public bool IsClientMutedForAll(IVoiceClient client)
 {
     return(Mock.Object.IsClientMutedForAll(client));
 }
示例#17
0
 public bool MuteClientForClient(IVoiceClient speaker, IVoiceClient listener, bool muted)
 {
     return(Mock.Object.MuteClientForClient(speaker, listener, muted));
 }
示例#18
0
 public bool SetListenerPosition(IVoiceClient listener, Vector3 position, float rotation)
 {
     return(Mock.Object.SetListenerPosition(listener, position, rotation));
 }
示例#19
0
 public bool IsClientConnected(IVoiceClient client)
 {
     return(Mock.Object.IsClientConnected(client));
 }
示例#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));
 }
示例#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));
 }
示例#24
0
 public bool ResetAllRelativePositionsForListener(IVoiceClient listener)
 {
     return(Mock.Object.ResetAllRelativePositionsForListener(listener));
 }
示例#25
0
 public bool IsClientMutedForAll(IVoiceClient client)
 {
     return(NativeLibary.JV_IsClientMutedForAll(client.Handle.Identifer));
 }
示例#26
0
 public bool RemoveClient(IVoiceClient client)
 {
     return(Mock.Object.RemoveClient(client));
 }
示例#27
0
 public bool IsClientMutedForClient(IVoiceClient speaker, IVoiceClient listener)
 {
     return(NativeLibary.JV_IsClientMutedForClient(speaker.Handle.Identifer, listener.Handle.Identifer));
 }
示例#28
0
 public bool SetClientNickname(IVoiceClient client, string nickname)
 {
     return(Mock.Object.SetClientNickname(client, nickname));
 }