|
|
|
## TICK
|
|
|
|
|
|
|
|
Tick-folder only has module and service component. It's start the server's internal clock on boot and ticks scores in started games.
|
|
|
|
|
|
|
|
The timer is started in `tick.module.ts` constructor.
|
|
|
|
|
|
|
|
You can change the tick interval in `tick.service.ts` _tickInterval_ variable. By default it ticks once a minute.
|
|
|
|
|
|
|
|
Imports the `GameEntity` and fetches the started games from the database. Runs `score.service.ts` scoreTick function on each started game. |