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