oldschool-toontown/toontown/cogdominium/DistCogdoGameBase.py
2019-11-02 18:27:54 -04:00

12 lines
295 B
Python

class DistCogdoGameBase:
def local2GameTime(self, timestamp):
return timestamp - self._startTime
def game2LocalTime(self, timestamp):
return timestamp + self._startTime
def getCurrentGameTime(self):
return self.local2GameTime(globalClock.getFrameTime())