Skip to content

five-on-it / packages/world/src/level / spawnsOf

Function: spawnsOf() ​

spawnsOf(level, role): SpawnPoint[]

Defined in: packages/world/src/level.ts:137

The spawn points of a role, in the level's order (the players' are those with no role, or players).

Parameters ​

level ​

Pick<LevelData, "spawns">

role ​

SpawnRole

Returns ​

SpawnPoint[]