2015-04-08 16:43:28 +00:00
|
|
|
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)
|
2015-04-29 04:01:52 +00:00
|
|
|
|
2015-04-08 16:43:28 +00:00
|
|
|
def sendReport(self, avId, category):
|
2015-04-29 04:01:52 +00:00
|
|
|
self.sendUpdate('sendReport', [avId, category])
|