TURN LIMIT CONTROL (IP)
RECEIVER
Supports Multiplayer Game, Turn time Limit.

!!TL:XXXX; Turn Limit support

OPTIONS

E$ Enable "show left time always".
    $ = 1 - enable
    $ = 0 - disable
Comment:
If you turn it ON, it will shows seconds left always but not the latest 10 seconds as usual.
C# Enable left time ticking.
    $ = 1 - run ticking
    $ = 0 - pause ticking
Comment:
The latest command works. So you can call "pause" 10 times but call "run" one time and it will run. So no calling stack present.
T#/$ Time format
   #$ - Set/check/get
0current time in ms
1current time in s
2turn start time in ms
3turn start time in s
4pause start time in ms
5pause start time in s
6turn length time in ms
7turn length time in s


When a player gets control, the current time is stored in "turn start time". Then every second the engine checks that:
   current_time - turn_start_time < turn_length
   If it is false, the turn ends.
   Now if you go to battle, the timer is paused. At this moment the current time is stored in "pause start time".
   Until "pause start time" is not 0, the turn will continue.
   Hint: to check if the turn paused or not, get "pause start time" and if it is 0, the timer runs but if it is 0, the timer is paused.
   When the timer continues (the battle is finished) "turn start time" is modified to reduce spent time for a length of the pause:
   turn_start_time = current_time - pause_start_time + turn_start_time and pause_start_time is set to 0.