mirror of
https://github.com/furyfire/trueskill.git
synced 2026-03-12 09:49:09 +01:00
19 lines
384 B
PHP
19 lines
384 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DNW\Skills\FactorGraphs;
|
|
|
|
final class ScheduleStep extends Schedule
|
|
{
|
|
public function __construct(private readonly Factor $factor, private readonly int $index)
|
|
{
|
|
}
|
|
|
|
#[\Override]
|
|
public function visit(int $depth = -1, int $maxDepth = 0): float
|
|
{
|
|
return $this->factor->updateMessageIndex($this->index);
|
|
}
|
|
}
|