Poodletooth-iLand/toontown/ai/DistributedBlackCatMgr.py

20 lines
762 B
Python
Raw Normal View History

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