callback updates

This commit is contained in:
kremsy
2017-04-07 17:28:04 +02:00
parent 50eaf4b82d
commit 0b08d5371d
5 changed files with 117 additions and 5 deletions

View File

@ -18,7 +18,10 @@ class PlayerScore extends CommonPlayerScore {
private $bestRaceTime;
private $bestLapTime;
private $stuntScore;
private $bestRaceRespawns;
private $bestRaceCheckpoints;
private $bestLapRespawns;
private $bestLapCheckpoints;
/**
* Returns the Rank
@ -88,4 +91,61 @@ class PlayerScore extends CommonPlayerScore {
$this->stuntScore = $stuntScore;
}
/**
* @return mixed
*/
public function getBestRaceRespawns() {
return $this->bestRaceRespawns;
}
/**
* @param mixed $bestRaceRespawns
*/
public function setBestRaceRespawns($bestRaceRespawns) {
$this->bestRaceRespawns = $bestRaceRespawns;
}
/**
* @return mixed
*/
public function getBestRaceCheckpoints() {
return $this->bestRaceCheckpoints;
}
/**
* @param mixed $bestRaceCheckpoints
*/
public function setBestRaceCheckpoints($bestRaceCheckpoints) {
$this->bestRaceCheckpoints = $bestRaceCheckpoints;
}
/**
* @return mixed
*/
public function getBestLapRespawns() {
return $this->bestLapRespawns;
}
/**
* @param mixed $bestLapRespawns
*/
public function setBestLapRespawns($bestLapRespawns) {
$this->bestLapRespawns = $bestLapRespawns;
}
/**
* @return mixed
*/
public function getBestLapCheckpoints() {
return $this->bestLapCheckpoints;
}
/**
* @param mixed $bestLapCheckpoints
*/
public function setBestLapCheckpoints($bestLapCheckpoints) {
$this->bestLapCheckpoints = $bestLapCheckpoints;
}
}

View File

@ -30,11 +30,12 @@ class OnScoresStructure extends CommonScoresStructure {
$playerScore->setBestRaceTime($jsonPlayer->bestracetime);
$playerScore->setBestLapTime($jsonPlayer->bestlaptime);
$playerScore->setStuntScore($jsonPlayer->stuntscore);
$playerScore->setBestRaceRespawns($jsonPlayer->bestracerespawns);
$playerScore->setBestRaceCheckpoints($jsonPlayer->bestracecheckpoints);
$playerScore->setBestLapRespawns($jsonPlayer->bestlaprespawns);
$playerScore->setBestLapCheckpoints($jsonPlayer->bestlapcheckpoints);
$this->playerScores[$jsonPlayer->login] = $playerScore;
}
}
}