type

Dir

@Js
@Serializable { simple=true }
enum class Dir : Enum

Direction enums: up, down, left, right

enum

constructors

fromStr

Return the Dir instance for the specified name.

fields

vals

List of Dir values indexed by ordinal

Slot Details

down

const static Dir down := ...

fromStr

static new fromStr(Str name, Bool checked := true)

Return the Dir instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

left

const static Dir left := ...

const static Dir right := ...

up

const static Dir up := ...

vals

const static Dir[] vals := Dir[Dir.up,Dir.down,Dir.left,Dir.right]

List of Dir values indexed by ordinal