toontown-just-works/toontown/cogdominium/DistCogdoGameBase.py

12 lines
294 B
Python
Raw Permalink Normal View History

2024-07-07 18:08:39 -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())