/// <summary> /// Call this when you are done spawning to make sure other spawning mechanics work. (Like console teleport). /// </summary> public static void EndSpawning() => Spawner.EndTeamRespawn();
/// <summary> /// This will attempt to get a random spawn point. /// </summary> public static PlayerSpawnPoint GetRandomSpawnPoint(RoleType role) => Spawner.GetRandomSpawnPointPatch_OnGetRandomSpawnPoint(role);
/// <summary> /// This should be called once every time before you perform spawning on a specific role. /// It makes sure there are enough available spawn points for your spawns, using the <see cref="SpawnSettings"/>. /// </summary> /// <param name="role">The role of the player(s) you are spawning</param> /// <param name="numberOfSpawns">The number of players you are going to spawn.</param> public static void FilterSpawns(RoleType role, int numberOfSpawns = 1) => Spawner.FilterSpawns(role, numberOfSpawns);