oldschool-toontown/toontown/racing/DistributedViewPadAI.py

20 lines
635 B
Python
Raw Normal View History

2019-11-09 04:55:55 +00:00
from direct.directnotify import DirectNotifyGlobal
2019-12-06 03:42:29 +00:00
from direct.distributed.ClockDelta import globalClockDelta
2019-11-09 04:55:55 +00:00
2019-12-06 03:42:29 +00:00
from toontown.racing.DistributedKartPadAI import DistributedKartPadAI
class DistributedViewPadAI(DistributedKartPadAI):
2019-11-09 04:55:55 +00:00
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedViewPadAI')
2019-12-06 03:42:29 +00:00
def __init__(self, air):
DistributedKartPadAI.__init__(self, air)
self.lastEntered = 0
def announceGenerate(self):
DistributedKartPadAI.announceGenerate(self)
self.lastEntered = globalClockDelta.getRealNetworkTime()
def getLastEntered(self):
return self.lastEntered