mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 20:52:26 -06:00
24 lines
756 B
Python
24 lines
756 B
Python
|
from direct.directnotify.DirectNotifyGlobal import *
|
||
|
from toontown.ai import HolidayBaseAI
|
||
|
|
||
|
|
||
|
class TrolleyHolidayMgrAI(HolidayBaseAI.HolidayBaseAI):
|
||
|
notify = directNotify.newCategory('TrolleyHolidayMgrAI')
|
||
|
|
||
|
PostName = 'TrolleyHoliday'
|
||
|
StartStopMsg = 'TrolleyHolidayStartStop'
|
||
|
|
||
|
def start(self):
|
||
|
HolidayBaseAI.HolidayBaseAI.start(self)
|
||
|
|
||
|
bboard.post(TrolleyHolidayMgrAI.PostName, True)
|
||
|
simbase.air.newsManager.trolleyHolidayStart()
|
||
|
messenger.send(TrolleyHolidayMgrAI.StartStopMsg)
|
||
|
|
||
|
def stop(self):
|
||
|
HolidayBaseAI.HolidayBaseAI.stop(self)
|
||
|
|
||
|
bboard.remove(TrolleyHolidayMgrAI.PostName)
|
||
|
simbase.air.newsManager.trolleyHolidayEnd()
|
||
|
messenger.send(TrolleyHolidayMgrAI.StartStopMsg)
|