mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
17 lines
No EOL
616 B
Python
17 lines
No EOL
616 B
Python
from direct.directnotify import DirectNotifyGlobal
|
|
from direct.distributed import DistributedObject
|
|
|
|
class DistributedReportMgr(DistributedObject.DistributedObject):
|
|
neverDisable = 1
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedReportMgr')
|
|
|
|
def announceGenerate(self):
|
|
DistributedObject.DistributedObject.announceGenerate(self)
|
|
base.cr.reportMgr = self
|
|
|
|
def delete(self):
|
|
base.cr.reportMgr = None
|
|
DistributedObject.DistributedObject.delete(self)
|
|
|
|
def sendReport(self, avId, category):
|
|
self.sendUpdate('sendReport', [avId, category]) |