historical/toontown-classic.git/toontown/cogdominium/DistCogdoGameBase.py

13 lines
295 B
Python
Raw Normal View History

2024-01-16 11:20:27 -06: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())