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->setBestRaceTime($jsonPlayer->bestracetime);
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
$playerScore->setStuntScore($jsonPlayer->stuntscore);
$playerScore->setStuntScore($jsonPlayer->stuntsscore);
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
$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
*/
class OnStuntEventStructure extends BasePlayerTimeStructure {
private $numberOfRespawns;
private $raceTime;
private $lapTime;
private $stuntsScore;
@ -39,7 +38,6 @@ class OnStuntEventStructure extends BasePlayerTimeStructure {
$jsonObj = $this->getPlainJsonObject();
$this->numberOfRespawns = (int) $jsonObj->numberOfRespawns;
$this->raceTime = (int) $jsonObj->racetime;
$this->lapTime = (int) $jsonObj->laptime;
$this->stuntsScore = $jsonObj->stuntsscore;
@ -76,15 +74,7 @@ class OnStuntEventStructure extends BasePlayerTimeStructure {
public function getStuntsScore() {
return $this->stuntsScore;
}
/**
* @api
* @return int
*/
public function getNumberOfRespawns() {
return $this->numberOfRespawns;
}
/**
* @api
* @return mixed