PlayerRole

constructor(name: String, displayName: String, maxPlayers: Int, description: String)(source)

Creates a new PlayerRole with specified attributes.

Parameters

name

The internal name of the role

displayName

The displayed name of the role

maxPlayers

Maximum number of players that can have this role per team

description

A detailed description of the role

Throws

if any parameter is null or if maxPlayers is less than or equal to 0