Poodletooth-iLand/toontown/cogdominium/DistCogdoGameBase.py
2015-11-14 14:28:53 -05:00

11 lines
294 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())