mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 04:14:28 +00:00
More type work
This commit is contained in:
@ -39,9 +39,9 @@ abstract class SkillCalculator
|
||||
*/
|
||||
abstract public function calculateMatchQuality(GameInfo $gameInfo, array $teamsOfPlayerToRatings): float;
|
||||
|
||||
public function isSupported(SkillCalculatorSupportedOptions $option): bool
|
||||
public function isSupported(int $option): bool
|
||||
{
|
||||
return (bool)($this->supportedOptions & $option->value) == $option;
|
||||
return (bool)($this->supportedOptions & $option) == $option;
|
||||
}
|
||||
|
||||
protected function validateTeamCountAndPlayersCountPerTeam(array $teamsOfPlayerToRatings): void
|
||||
|
Reference in New Issue
Block a user