Poodletooth-iLand/toontown/ai/DistributedBlackCatMgr.py

20 lines
762 B
Python
Raw Normal View History

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