FR

Slave Rift

par tueb2024 · Tir
5,0 (1)
▶ Jouer 💬 Avis Sources 🕘 Versions Éditer GitHub
games/slave-rift / src / Game / BrushMapFactory.php · commit 9ea6094
<?phpnamespace App\Game;/** Factory for generated maps that preserves BrushMap's public runtime contract. */final class BrushMapFactory{    public static function fromGenerated(array $solids, array $spawnPoints, array $playerStart, float $playerYaw, array $decals = []): BrushMap    {        $map = new BrushMap();        $map->solids = $solids;        $map->spawnPoints = $spawnPoints;        $map->playerStart = $playerStart;        $map->playerYaw = $playerYaw;        $map->decals = $decals;        return $map;    }}