2015-03-03 22:10:12 +00:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from direct.distributed import DistributedObject
|
|
|
|
|
|
|
|
class DistributedBlackCatMgr(DistributedObject.DistributedObject):
|
2015-04-07 14:55:39 +00:00
|
|
|
neverDisable = 1
|
2015-03-03 22:10:12 +00:00
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedBlackCatMgr')
|
|
|
|
|
|
|
|
def announceGenerate(self):
|
|
|
|
DistributedObject.DistributedObject.announceGenerate(self)
|
2015-04-07 14:55:39 +00:00
|
|
|
base.cr.blackCatMgr = self
|
2015-03-03 22:10:12 +00:00
|
|
|
|
|
|
|
def delete(self):
|
2015-04-07 14:55:39 +00:00
|
|
|
base.cr.blackCatMgr = None
|
2015-03-03 22:10:12 +00:00
|
|
|
DistributedObject.DistributedObject.delete(self)
|
|
|
|
|
2015-04-07 14:55:39 +00:00
|
|
|
def requestBlackCatTransformation(self):
|
|
|
|
self.sendUpdate('requestBlackCatTransformation')
|
2015-03-03 22:10:12 +00:00
|
|
|
|
2015-04-07 14:55:39 +00:00
|
|
|
def doBlackCatTransformation(self):
|
2015-05-25 11:29:48 +00:00
|
|
|
getDustCloudIval(base.localAvatar, color=base.localAvatar.style.getBlackColor()).start()
|