oldschool-toontown/toontown/racing/DistributedViewPadAI.py
2019-12-05 22:42:29 -05:00

19 lines
635 B
Python

from direct.directnotify import DirectNotifyGlobal
from direct.distributed.ClockDelta import globalClockDelta
from toontown.racing.DistributedKartPadAI import DistributedKartPadAI
class DistributedViewPadAI(DistributedKartPadAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedViewPadAI')
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