本文整理汇总了Python中direct.distributed.DistributedObjectGlobal.DistributedObjectGlobal类的典型用法代码示例。如果您正苦于以下问题:Python DistributedObjectGlobal类的具体用法?Python DistributedObjectGlobal怎么用?Python DistributedObjectGlobal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DistributedObjectGlobal类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.avatarData = {}
self.avatarQueue = []
self.avatarRequestTaskName = 'StatusDataBase_RequestAvatarLastOnline'
self.avatarRetreiveTaskName = 'StatusDataBase_GetAvatarLastOnline'
self.avatarDoneTaskName = 'StatusDataBase GotAvatarData'
示例2: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.offerRequestCache = []
self.offerCurrentlyOnScreen = False
self.crewType = 1
self.confirmBox = None
self.handleDict = { }
示例3: delete
def delete(self):
self.ignore(self._crConnectEvent)
if self._sracs:
self._sracs.destroy()
SettingsMgrBase.delete(self)
DistributedObjectGlobal.delete(self)
示例4: announceGenerate
def announceGenerate(self):
DistributedObjectGlobal.announceGenerate(self)
SettingsMgrBase.announceGenerate(self)
if not self.cr.isLive():
self._sracs = None
if self.cr.isConnected():
self._scheduleChangedSettingRequest()
self._crConnectEvent = self.cr.getConnectedEvent()
self.accept(self._crConnectEvent, self._handleConnected)
return
示例5: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.id2Name = { }
self.id2BandId = { }
self.id2Rank = { }
self.id2Online = { }
self.pendingMsgs = []
self.whiteListEnabled = base.config.GetBool('whitelist-chat-enabled', 1)
self.emailNotification = 0
self.emailNotificationAddress = None
self.receivingNewList = False
self.spamGateOpen = True
示例6: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.setupPortableHoleEvent()
示例7: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.loginDoneEvent = None
self.systemMessageSfx = None
示例8: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.chatMode = 0
示例9: delete
def delete(self):
self.ignoreAll()
self.cr.chatManager = None
self.cr.chatAgent = None
DistributedObjectGlobal.delete(self)
return
示例10: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.notify.warning('ChatManager going online')
示例11: delete
def delete(self):
self.ignoreAll()
self.notify.warning('ChatManager going offline')
self.cr.chatManager = None
DistributedObjectGlobal.delete(self)
return
示例12: announceGenerate
def announceGenerate(self):
DistributedObjectGlobal.announceGenerate(self)
self.leader2Group = {}
示例13: generate
def generate(self):
DistributedObjectGlobal.generate(self)
示例14: delete
def delete(self):
self.cleanupPortableHoleEvent()
DistributedObjectGlobal.delete(self)
示例15: __init__
def __init__(self, cr):
DistributedObjectGlobal.__init__(self, cr)
self.__secret = config.GetString('csm-secret', 'dev')
loadPrcFileData('', 'csm-secret dev')