Poodletooth-iLand/toontown/distributed/DistributedTimerAI.py
John 35b646c4e6 Revert "Spring cleaning"
This reverts commit 1e4bad8c6b.
2015-06-16 20:26:44 +03:00

18 lines
582 B
Python
Executable file

from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
from direct.distributed.ClockDelta import *
import time
class DistributedTimerAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedTimerAI")
def __init__(self, air):
DistributedObjectAI.__init__(self, air)
self.setStartTime(globalClockDelta.getRealNetworkTime(bits = 32))
def setStartTime(self, time):
self.startTime = time
def getStartTime(self):
return self.startTime