示例#1
0
def SpeakerBlacklisted(speakerOid):
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call SpeakerBlacklisted")
        return False
    else:
        return _worldManager.VoiceMgr.SpeakerBlacklisted(speakerOid)
示例#2
0
def SetPlaybackVolumeForAllSpeakers(level):
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call SetPlaybackVolumeForAllSpeakers"
        )
    else:
        _worldManager.VoiceMgr.SetPlaybackVolumeForAllSpeakers(level)
示例#3
0
def ConfigureVoiceManager(args, connectedToVoiceServer):
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't be configured")
    else:
        _worldManager.VoiceMgr = VoiceManager.Reconfigure(
            _worldManager.VoiceMgr, args, connectedToVoiceServer)
示例#4
0
def GetPlaybackVolume(speakerOid):
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call GetPlaybackVolume")
        return 0.0
    else:
        return _worldManager.VoiceMgr.GetPlaybackVolume(speakerOid)
示例#5
0
def RecentSpeakers():
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call SetMicLevel")
        return None
    else:
        return _worldManager.VoiceMgr.RecentSpeakers()
示例#6
0
def GetMicNumber():
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call GetMicNumber")
        return None
    else:
        return _worldManager.VoiceMgr.GetMicNumber()
示例#7
0
def GetAllPlaybackDevices():
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call GetAllPlaybackDevices"
        )
        return None
    else:
        return _worldManager.VoiceMgr.GetAllPlaybackDevices()
示例#8
0
def GetBlacklistedSpeakers():
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call GetBlacklistedSpeakers"
        )
        return None
    else:
        return _worldManager.VoiceMgr.GetBlacklistedSpeakers()
 def Execute(self):
     results = self._rayQuery.Execute()
     rv = []
     for entry in results:
         if entry.SceneObject is not None:
             if isinstance(entry.SceneObject.UserData,
                           Multiverse.Base.ObjectNode):
                 existingObject = WorldObject._GetExistingWorldObject(
                     entry.SceneObject.UserData)
                 rv.append(
                     RaySceneQueryResult(entry.Distance, existingObject,
                                         None))
             else:
                 ClientAPI.Write("Skipping non-multiverse object: %s" %
                                 entry.SceneObject.UserData)
                 # ignore this object
                 pass
         elif entry.worldFragment is not None:
             rv.append(
                 RaySceneQueryResult(
                     entry.Distance, None,
                     entry.worldFragment.SingleIntersection))
     return rv
示例#10
0
def RunScript(args_str):
    try:
        Multiverse.Interface.UiScripting.RunScript(args_str)
    except Exception, e:
        ClientAPI.Write("Script Error: " + str(e))
示例#11
0
def BlacklistSpeaker(speakerOid, doit):
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call BlacklistSpeaker")
    else:
        _worldManager.VoiceMgr.BlacklistSpeaker(speakerOid, doit)
示例#12
0
def PushToTalk(nowTalking):
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call PushToTalk")
    else:
        _worldManager.VoiceMgr.PushToTalk(nowTalking)
示例#13
0
def StopVoiceManager():
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write("WorldManager.VoiceMgr is null, so can't be stopped")
    else:
        _worldManager.DisposeVoiceManager()
示例#14
0
def SetMicLevel(micNumber, level):
    if _worldManager.VoiceMgr == None:
        ClientAPI.Write(
            "WorldManager.VoiceMgr is null, so can't call SetMicLevel")
    else:
        _worldManager.VoiceMgr.SetMicLevel(micNumber, level)