Weapon

A utility class mapping from weapon types to palette IDs.

Since

0.5.0

Parameters

paletteId

the weapon's palette ID

Entries

Link copied to clipboard

Represents any unknown or unexpected value.

Link copied to clipboard

An axe.

Link copied to clipboard

A longbow.

Link copied to clipboard

A dagger.

Link copied to clipboard

A focus.

Link copied to clipboard

A greatsword.

Link copied to clipboard

A hammer.

Link copied to clipboard

A mace.

Link copied to clipboard

A pistol.

Link copied to clipboard

A rifle.

Link copied to clipboard

A scepter.

Link copied to clipboard

A shield.

Link copied to clipboard

A staff.

Link copied to clipboard

A sword.

Link copied to clipboard

A torch.

Link copied to clipboard

A warhorn.

Link copied to clipboard

A shortbow.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:JvmName(name = "getPaletteId")
val paletteId: UShort

Functions

Link copied to clipboard
fun valueOf(value: String): Weapon

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.