Role.forName

Get the #AtkRole type corresponding to a rolew name.

struct Role
static
forName
(
string name
)

Parameters

name string

a string which is the (non-localized) name of an ATK role.

Return Value

Type: atk.types.Role

the #AtkRole enumerated type corresponding to the specified name, or #ATK_ROLE_INVALID if no matching role is found.