Role.forName

atk.types.Role forName(string name)

Get the #AtkRole type corresponding to a rolew name.

Parameters

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

Returns

the #AtkRole enumerated type corresponding to the specified name,

or #ATK_ROLE_INVALID if no matching role is found.