small tm callback fixes

This commit is contained in:
kremsy 2017-05-06 10:09:41 +02:00
parent 163cc6f4eb
commit e56b83ccb3
2 changed files with 2 additions and 12 deletions

View File

@ -36,7 +36,7 @@ class OnScoresStructure extends CommonScoresStructure {
$playerScore->setMapPoints($jsonPlayer->mappoints); $playerScore->setMapPoints($jsonPlayer->mappoints);
$playerScore->setBestRaceTime($jsonPlayer->bestracetime); $playerScore->setBestRaceTime($jsonPlayer->bestracetime);
$playerScore->setBestLapTime($jsonPlayer->bestlaptime); $playerScore->setBestLapTime($jsonPlayer->bestlaptime);
$playerScore->setStuntScore($jsonPlayer->stuntscore); $playerScore->setStuntScore($jsonPlayer->stuntsscore);
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns); $playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints); $playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
$playerScore->setBestLapRespawns($jsonPlayer->bestlaprespawns); $playerScore->setBestLapRespawns($jsonPlayer->bestlaprespawns);

View File

@ -15,7 +15,6 @@ use ManiaControl\ManiaControl;
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/ */
class OnStuntEventStructure extends BasePlayerTimeStructure { class OnStuntEventStructure extends BasePlayerTimeStructure {
private $numberOfRespawns;
private $raceTime; private $raceTime;
private $lapTime; private $lapTime;
private $stuntsScore; private $stuntsScore;
@ -39,7 +38,6 @@ class OnStuntEventStructure extends BasePlayerTimeStructure {
$jsonObj = $this->getPlainJsonObject(); $jsonObj = $this->getPlainJsonObject();
$this->numberOfRespawns = (int) $jsonObj->numberOfRespawns;
$this->raceTime = (int) $jsonObj->racetime; $this->raceTime = (int) $jsonObj->racetime;
$this->lapTime = (int) $jsonObj->laptime; $this->lapTime = (int) $jsonObj->laptime;
$this->stuntsScore = $jsonObj->stuntsscore; $this->stuntsScore = $jsonObj->stuntsscore;
@ -77,14 +75,6 @@ class OnStuntEventStructure extends BasePlayerTimeStructure {
return $this->stuntsScore; return $this->stuntsScore;
} }
/**
* @api
* @return int
*/
public function getNumberOfRespawns() {
return $this->numberOfRespawns;
}
/** /**
* @api * @api
* @return mixed * @return mixed