oldschool-toontown/toontown/uberdog/DistributedInGameNewsMgrAI.py
2019-11-17 16:29:23 -05:00

22 lines
803 B
Python

from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistributedInGameNewsMgrAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedInGameNewsMgrAI')
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