/** * Returns a struct containing the game settings for the next map. * @param bool $multicall * @return Structures\GameInfos */ function getNextGameInfo($multicall = false) { if ($multicall) { return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('GameInfos')); } return Structures\GameInfos::fromArray($this->execute(ucfirst(__FUNCTION__))); }
/** * Optional parameter for compatibility: * struct version (0 = united, 1 = forever). * Returns a struct containing the game settings for the next map, ie: * GameMode, ChatTime, NbMap, RoundsPointsLimit, RoundsUseNewRules, RoundsForcedLaps, * TimeAttackLimit, TimeAttackSynchStartPeriod, TeamPointsLimit, TeamMaxPoints, TeamUseNewRules, * LapsNbLaps, LapsTimeLimit, FinishTimeout, * additionally for version 1: AllWarmUpDuration, DisableRespawn, ForceShowAllOpponents, RoundsPointsLimitNewRules, * TeamPointsLimitNewRules, CupPointsLimit, CupRoundsPerMap, CupNbWinners, CupWarmUpDuration. * @param int $compatibility * @return Structures\GameInfos * @throws InvalidArgumentException */ function getNextGameInfo($compatibility = 1) { if ($compatibility !== 1 && $compatibility != 0) { throw new InvalidArgumentException('compatibility = ' . print_r($compatibility, true)); } return Structures\GameInfos::fromArray($this->execute(ucfirst(__FUNCTION__), array($compatibility))); }