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)
def SetPlaybackVolumeForAllSpeakers(level): if _worldManager.VoiceMgr == None: ClientAPI.Write( "WorldManager.VoiceMgr is null, so can't call SetPlaybackVolumeForAllSpeakers" ) else: _worldManager.VoiceMgr.SetPlaybackVolumeForAllSpeakers(level)
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)
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)
def RecentSpeakers(): if _worldManager.VoiceMgr == None: ClientAPI.Write( "WorldManager.VoiceMgr is null, so can't call SetMicLevel") return None else: return _worldManager.VoiceMgr.RecentSpeakers()
def GetMicNumber(): if _worldManager.VoiceMgr == None: ClientAPI.Write( "WorldManager.VoiceMgr is null, so can't call GetMicNumber") return None else: return _worldManager.VoiceMgr.GetMicNumber()
def GetAllPlaybackDevices(): if _worldManager.VoiceMgr == None: ClientAPI.Write( "WorldManager.VoiceMgr is null, so can't call GetAllPlaybackDevices" ) return None else: return _worldManager.VoiceMgr.GetAllPlaybackDevices()
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
def RunScript(args_str): try: Multiverse.Interface.UiScripting.RunScript(args_str) except Exception, e: ClientAPI.Write("Script Error: " + str(e))
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)
def PushToTalk(nowTalking): if _worldManager.VoiceMgr == None: ClientAPI.Write( "WorldManager.VoiceMgr is null, so can't call PushToTalk") else: _worldManager.VoiceMgr.PushToTalk(nowTalking)
def StopVoiceManager(): if _worldManager.VoiceMgr == None: ClientAPI.Write("WorldManager.VoiceMgr is null, so can't be stopped") else: _worldManager.DisposeVoiceManager()
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)