2019-11-10 18:46:41 -06:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
|
|
|
|
|
|
|
class DistributedInGameNewsMgrAI(DistributedObjectAI):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedInGameNewsMgrAI')
|
2019-11-17 15:29:23 -06:00
|
|
|
|
|
|
|
def __init__(self, air):
|
|
|
|
DistributedObjectAI.__init__(self, air)
|
|
|
|
self.latestIssueStr = ''
|
|
|
|
|
|
|
|
def setLatestIssueStr(self, latestIssueStr):
|
|
|
|
self.latestIssueStr = latestIssueStr
|
|
|
|
|
|
|
|
def d_setLatestIssueStr(self, latestIssueStr):
|
|
|
|
self.sendUpdate('setLatestIssueStr', [latestIssueStr])
|
|
|
|
|
|
|
|
def b_setLatestIssueStr(self, latestIssueStr):
|
|
|
|
self.setLatestIssueStr(latestIssueStr)
|
|
|
|
self.d_setLatestIssueStr(latestIssueStr)
|
|
|
|
|
|
|
|
def getLatestIssueStr(self):
|
|
|
|
return self.latestIssueStr
|