604 B
604 B
event onTime
This event is triggered each time when game time minute passes.
Original: onExit
Parameters
dictkwargs:intday: the current ingame day.inthour: the current ingame hour.intmin: the current ingame minutes.
Usage
import g2o
@g2o.event('onTick')
def onTickEvt(**kwargs):
day = kwargs['day']
hour = kwargs['hour']
mins = kwargs['min']
print(f'Current time: Day {day}, Hour {hour}, Min {mins}')