oldschool-toontown/toontown/cogdominium/DistCogdoGameBase.py

13 lines
295 B
Python
Raw Normal View History

2019-11-02 17:27:54 -05:00
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())