| @@ 33-48 (lines=16) @@ | ||
| 30 | ||
| 31 | public function onWayPoint($params) |
|
| 32 | { |
|
| 33 | if ($params['isendrace']) { |
|
| 34 | $this->dispatch( |
|
| 35 | 'onPlayerEndRace', |
|
| 36 | [ |
|
| 37 | $params['login'], |
|
| 38 | $params['time'], |
|
| 39 | $params['racetime'], |
|
| 40 | $params['stuntsscore'], |
|
| 41 | $params['checkpointinrace'], |
|
| 42 | $params['curracecheckpoints'], |
|
| 43 | $params['blockid'], |
|
| 44 | $params['speed'], |
|
| 45 | $params['distance'], |
|
| 46 | ] |
|
| 47 | ); |
|
| 48 | } |
|
| 49 | ||
| 50 | if ($params['isendlap'] && $this->mapStorage->getCurrentMap()->lapRace) { |
|
| 51 | $this->dispatch( |
|
| @@ 50-65 (lines=16) @@ | ||
| 47 | ); |
|
| 48 | } |
|
| 49 | ||
| 50 | if ($params['isendlap'] && $this->mapStorage->getCurrentMap()->lapRace) { |
|
| 51 | $this->dispatch( |
|
| 52 | 'onPlayerEndLap', |
|
| 53 | [ |
|
| 54 | $params['login'], |
|
| 55 | $params['time'], |
|
| 56 | $params['laptime'], |
|
| 57 | $params['stuntsscore'], |
|
| 58 | $params['checkpointinlap'], |
|
| 59 | $params['curlapcheckpoints'], |
|
| 60 | $params['blockid'], |
|
| 61 | $params['speed'], |
|
| 62 | $params['distance'], |
|
| 63 | ] |
|
| 64 | ); |
|
| 65 | } |
|
| 66 | ||
| 67 | $this->dispatch( |
|
| 68 | 'onPlayerWayPoint', |
|