ObjectAtk.roleForName

Get the AtkRole type corresponding to a rolew name.

class ObjectAtk
static
roleForName
(
string name
)

Parameters

name string

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

Return Value

Type: AtkRole

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

Meta