1 | <?php |
||
14 | class PlayerEventsDataProvider extends AbstractDataProvider |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @param $params |
||
19 | * [ |
||
20 | * "{ |
||
21 | * "time": 123456 //< Server time when the event occured, |
||
22 | * "login": "PlayerLogin", |
||
23 | * "nbrespawns": 5, //< Number of respawns since the beginning of the race |
||
24 | * "racetime": 123456, //< Total race time in milliseconds |
||
25 | * "laptime": 45678, //< Lap time in milliseconds |
||
26 | * "stuntsscore": 3457, //< Stunts score |
||
27 | * "checkpointinrace": 13, //< Number of checkpoints crossed since the beginning of the race |
||
28 | * "checkpointinlap": 4, //< Number of checkpoints crossed since the beginning of the lap |
||
29 | * "speed": 456.45, //< Speed of the player in km/h |
||
30 | * "distance": 398.49 //< Distance traveled by the player since the beginning of the race |
||
31 | * }" |
||
32 | * ] |
||
33 | */ |
||
34 | public function onRespawn($params) |
||
44 | |||
45 | /** |
||
46 | * |
||
47 | */ |
||
48 | public function onGiveUp($params) |
||
56 | |||
57 | public function onStartLine($params) |
||
65 | |||
66 | /** |
||
67 | * @param $params |
||
68 | * "time": 123456 //< Server time when the event occured, |
||
69 | * "login": "PlayerLogin", |
||
70 | * "racetime": 123456, //< Total race time in milliseconds |
||
71 | * "laptime": 45678, //< Lap time in milliseconds |
||
72 | * "stuntsscore": 3457, //< Stunts score |
||
73 | * "figure": "EStuntFigure::Roll", //< Name of the figure |
||
74 | * "angle": 125, //< Angle of the car |
||
75 | * "points": 18, //< Point awarded by the figure |
||
76 | * "combo": 35, //< Combo counter |
||
77 | * "isstraight": true, //< Is the car straight |
||
78 | * "isreverse": false, //< Is the car reversed |
||
79 | * "ismasterjump": false, |
||
80 | * "factor": 0.5 / |
||
81 | */ |
||
82 | public function onPlayerStunt($params) |
||
99 | |||
100 | |||
101 | } |
||
102 |