mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 05:32:41 -06:00
13 lines
295 B
Python
13 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())
|