当前位置: 首页>>代码示例>>Python>>正文


Python speedchat.SCDecoders类代码示例

本文整理汇总了Python中otp.speedchat.SCDecoders的典型用法代码示例。如果您正苦于以下问题:Python SCDecoders类的具体用法?Python SCDecoders怎么用?Python SCDecoders使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了SCDecoders类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: recvSpeedChat

 def recvSpeedChat(self, avatarId, msgIndex, name):
     print 'siege manager recvSpeedChat'
     if not self.cr.avatarFriendsManager.checkIgnored(avatarId):
         displayMess = '%s %s %s' % (name, self.getPVPChatTeamName(localAvatar.getSiegeTeam()), SCDecoders.decodeSCStaticTextMsg(msgIndex))
         message = SCDecoders.decodeSCStaticTextMsg(msgIndex)
         teamName = self.getPVPChatTeamName(localAvatar.getSiegeTeam())
         base.talkAssistant.receiveShipPVPMessage(avatarId, 0, name, teamName, message)
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:7,代码来源:SiegeManager.py

示例2: setSCCustom

 def setSCCustom(self, msgIndex):
     if base.localAvatar.isIgnored(self.doId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.setChatAbsolute(chatString, CFSpeech | CFQuicktalker | CFTimeout)
     base.talkAssistant.receiveOpenSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, self.doId)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:7,代码来源:DistributedPlayer.py

示例3: setSC

 def setSC(self, msgIndex):
     if base.localAvatar.isIgnored(self.doId):
         return
     chatString = SCDecoders.decodeSCStaticTextMsg(msgIndex)
     if chatString:
         self.setChatAbsolute(chatString, CFSpeech | CFQuicktalker | CFTimeout, quiet=1)
     base.talkAssistant.receiveOpenSpeedChat(TalkAssistant.SPEEDCHAT_NORMAL, msgIndex, self.doId)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:7,代码来源:DistributedPlayer.py

示例4: setWhisperSCEmoteFrom

 def setWhisperSCEmoteFrom(self, fromId, emoteId):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None or base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCEmoteWhisperMsg(emoteId, handle.getName())
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTEmote)
     return
开发者ID:badluxk,项目名称:topcqs,代码行数:8,代码来源:DistributedPlayer.py

示例5: setWhisperSCFrom

 def setWhisperSCFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None or base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCStaticTextMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTNormal)
     return
开发者ID:badluxk,项目名称:topcqs,代码行数:8,代码来源:DistributedPlayer.py

示例6: setWhisperSCEmoteFrom

 def setWhisperSCEmoteFrom(self, fromId, emoteId):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None or base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCEmoteWhisperMsg(emoteId, handle.getName())
     if chatString:
         self.displayWhisper(fromId, chatString, WTEmote)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_EMOTE, emoteId, fromId)
     return
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:9,代码来源:DistributedPlayer.py

示例7: setWhisperSCFrom

 def setWhisperSCFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None or base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCStaticTextMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WTQuickTalker)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_NORMAL, msgIndex, fromId)
     return
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:9,代码来源:DistributedPlayer.py

示例8: setWhisperSCCustomFrom

 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning('displayWhisper from non-toon %s' % fromId)
         return
     if base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTNormal)
开发者ID:badluxk,项目名称:topcqs,代码行数:12,代码来源:DistributedPlayer.py

示例9: setWhisperSCEmoteFrom

 def setWhisperSCEmoteFrom(self, fromId, emoteId):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if base.cr.avatarFriendsManager.checkIgnored(fromId):
         self.d_setWhisperIgnored(fromId)
         return
     chatString = SCDecoders.decodeSCEmoteWhisperMsg(emoteId, handle.getName())
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTEmote)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_EMOTE, emoteId, fromId)
     return
开发者ID:gamerdave54321,项目名称:Toontown-House-Code,代码行数:12,代码来源:DistributedPlayer.py

示例10: setWhisperSCCustomFrom

 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning('displayWhisper from non-toon %s' % fromId)
         return
     if base.localAvatar.isIgnored(fromId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WTQuickTalker)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, fromId)
     return
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:14,代码来源:DistributedPlayer.py

示例11: setWhisperSCFrom

 def setWhisperSCFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if base.cr.avatarFriendsManager.checkIgnored(fromId):
         self.d_setWhisperIgnored(fromId)
         return
     if fromId in self.ignoreList:
         self.d_setWhisperIgnored(fromId)
         return
     chatString = SCDecoders.decodeSCStaticTextMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WTQuickTalker)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_NORMAL, msgIndex, fromId)
     return
开发者ID:CalebSmith376,项目名称:src,代码行数:15,代码来源:DistributedPlayer.py

示例12: setWhisperSCCustomFrom

 def setWhisperSCCustomFrom(self, fromId, msgIndex):
     handle = base.cr.identifyAvatar(fromId)
     if handle == None:
         return
     if not self._isValidWhisperSource(handle):
         self.notify.warning("displayWhisper from non-toon %s" % fromId)
         return
     if base.cr.avatarFriendsManager.checkIgnored(fromId):
         self.d_setWhisperIgnored(fromId)
         return
     if fromId in self.ignoreList:
         self.d_setWhisperIgnored(fromId)
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.displayWhisper(fromId, chatString, WhisperPopup.WTQuickTalker)
         base.talkAssistant.receiveAvatarWhisperSpeedChat(TalkAssistant.SPEEDCHAT_CUSTOM, msgIndex, fromId)
     return
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leaked-Source,代码行数:18,代码来源:DistributedPlayer.py

示例13: setSpeedChat

 def setSpeedChat(self, senderId, msgIndex):
     if not self.cr.avatarFriendsManager.checkIgnored(self.avatarId):
         displayMess = '%s %s %s' % (self.name, PLocalizer.CrewPrefix, SCDecoders.decodeSCStaticTextMsg(msgIndex))
         message = SCDecoders.decodeSCStaticTextMsg(msgIndex)
         if message:
             base.talkAssistant.receivePartyMessage(message, senderId, self.name)
开发者ID:XamarinDeveloper,项目名称:Pirates-Online-Source,代码行数:6,代码来源:DistributedBandMember.py

示例14: setSCCustom

 def setSCCustom(self, msgIndex):
     if base.localAvatar.isIgnored(self.doId):
         return
     chatString = SCDecoders.decodeSCCustomMsg(msgIndex)
     if chatString:
         self.setChatAbsolute(chatString, CFSpeech | CFQuicktalker | CFTimeout)
开发者ID:badluxk,项目名称:topcqs,代码行数:6,代码来源:DistributedPlayer.py


注:本文中的otp.speedchat.SCDecoders类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。