| @@ 18-33 (lines=16) @@ | ||
| 15 | { |
|
| 16 | public function onWayPoint($params) |
|
| 17 | { |
|
| 18 | if ($params['isendrace']) { |
|
| 19 | $this->dispatch( |
|
| 20 | 'onPlayerEndRace', |
|
| 21 | [ |
|
| 22 | $params['login'], |
|
| 23 | $params['time'], |
|
| 24 | $params['racetime'], |
|
| 25 | $params['stuntsscore'], |
|
| 26 | $params['checkpointinrace'], |
|
| 27 | $params['curracecheckpoints'], |
|
| 28 | $params['blockid'], |
|
| 29 | $params['speed'], |
|
| 30 | $params['distance'], |
|
| 31 | ] |
|
| 32 | ); |
|
| 33 | } |
|
| 34 | ||
| 35 | if ($params['isendlap']) { |
|
| 36 | $this->dispatch( |
|
| @@ 35-50 (lines=16) @@ | ||
| 32 | ); |
|
| 33 | } |
|
| 34 | ||
| 35 | if ($params['isendlap']) { |
|
| 36 | $this->dispatch( |
|
| 37 | 'onPlayerEndLap', |
|
| 38 | [ |
|
| 39 | $params['login'], |
|
| 40 | $params['time'], |
|
| 41 | $params['laptime'], |
|
| 42 | $params['stuntsscore'], |
|
| 43 | $params['checkpointinlap'], |
|
| 44 | $params['curlapcheckpoints'], |
|
| 45 | $params['blockid'], |
|
| 46 | $params['speed'], |
|
| 47 | $params['distance'], |
|
| 48 | ] |
|
| 49 | ); |
|
| 50 | } |
|
| 51 | ||
| 52 | $this->dispatch( |
|
| 53 | 'onPlayerWayPoint', |
|