mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-11-01 09:17:54 +00:00
94 lines
2.1 KiB
Python
94 lines
2.1 KiB
Python
from direct.directnotify.DirectNotifyGlobal import directNotify
|
|
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
|
|
|
|
|
class NewsManagerAI(DistributedObjectAI):
|
|
notify = directNotify.newCategory('NewsManagerAI')
|
|
|
|
def announceGenerate(self):
|
|
DistributedObjectAI.announceGenerate(self)
|
|
|
|
self.accept('avatarEntered', self.__handleAvatarEntered)
|
|
|
|
def __handleAvatarEntered(self, avatar):
|
|
if self.air.suitInvasionManager.getInvading():
|
|
self.air.suitInvasionManager.notifyInvasionBulletin(avatar.getDoId())
|
|
|
|
def setPopulation(self, todo0):
|
|
pass
|
|
|
|
def setBingoWin(self, todo0):
|
|
pass
|
|
|
|
def setBingoStart(self):
|
|
pass
|
|
|
|
def setBingoEnd(self):
|
|
pass
|
|
|
|
def setCircuitRaceStart(self):
|
|
pass
|
|
|
|
def setCircuitRaceEnd(self):
|
|
pass
|
|
|
|
def setTrolleyHolidayStart(self):
|
|
pass
|
|
|
|
def setTrolleyHolidayEnd(self):
|
|
pass
|
|
|
|
def setTrolleyWeekendStart(self):
|
|
pass
|
|
|
|
def setTrolleyWeekendEnd(self):
|
|
pass
|
|
|
|
def setRoamingTrialerWeekendStart(self):
|
|
pass
|
|
|
|
def setRoamingTrialerWeekendEnd(self):
|
|
pass
|
|
|
|
def setInvasionStatus(self, msgType, cogType, numRemaining, skeleton):
|
|
self.sendUpdate('setInvasionStatus', args=[msgType, cogType, numRemaining, skeleton])
|
|
|
|
def setHolidayIdList(self, holidays):
|
|
self.sendUpdate('setHolidayIdList', holidays)
|
|
|
|
def holidayNotify(self):
|
|
pass
|
|
|
|
def setWeeklyCalendarHolidays(self, todo0):
|
|
pass
|
|
|
|
def getWeeklyCalendarHolidays(self):
|
|
return []
|
|
|
|
def setYearlyCalendarHolidays(self, todo0):
|
|
pass
|
|
|
|
def getYearlyCalendarHolidays(self):
|
|
return []
|
|
|
|
def setOncelyCalendarHolidays(self, todo0):
|
|
pass
|
|
|
|
def getOncelyCalendarHolidays(self):
|
|
return []
|
|
|
|
def setRelativelyCalendarHolidays(self, todo0):
|
|
pass
|
|
|
|
def getRelativelyCalendarHolidays(self):
|
|
return []
|
|
|
|
def setMultipleStartHolidays(self, todo0):
|
|
pass
|
|
|
|
def getMultipleStartHolidays(self):
|
|
return []
|
|
|
|
def sendSystemMessage(self, todo0, todo1):
|
|
pass
|
|
|