deploy first version of Trackmania Rounds Plugin

This commit is contained in:
kremsy
2017-05-17 12:18:15 +02:00
parent 1eea876a3b
commit e0290b6947
4 changed files with 206 additions and 57 deletions

View File

@ -474,6 +474,31 @@ class ModeScriptEventManager implements UsageInformationAble {
$this->triggerModeScriptEvent('Trackmania.SetPointsRepartition', $pointArray);
}
/**
* Sets the Trackmania Player Points
*
* @param \ManiaControl\Players\Player $player
* @param string|int $roundPoints //< The round points, use an empty string to not update.
* @param string|int $mapPoints //< The map points, use an empty string to not update.
* @param string|int $matchPoints //< The match points, use an empty string to not update.
*/
public function setTrackmaniaPlayerPoints(Player $player, $roundPoints = "", $mapPoints = "", $matchPoints = "") {
$login = Player::parseLogin($player);
$this->triggerModeScriptEvent('Trackmania.SetPlayerPoints', array($login, strval($roundPoints), strval($mapPoints), strval($matchPoints)));
}
/**
* Sets the Trackmania Team Points
*
* @param int $teamId //< Id of the team t. Can be 1 or 2.
* @param string|int $roundPoints
* @param string|int $mapPoints
* @param string|int $matchPoints
*/
public function setTrackmaniaTeamPoints($teamId, $roundPoints = "", $mapPoints = "", $matchPoints = "") {
$this->triggerModeScriptEvent('Trackmania.SetTeamPoints', array(strval($teamId), strval($roundPoints), strval($mapPoints), strval($matchPoints)));
}
/**
* Request the current ui properties. This method will trigger the "Shootmania.UIProperties" callback.
*