Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Enum

Enums are special value types for Entities. (Entity)

They could be for example the list of possible Enemy types, or a list of Item identifiers.

Each Enum is made up of one or more values. (EnumValue)

Visit https://ldtk.io/docs/general/editor-components/enumerations-enums/ for more information.

Hierarchy

  • Enum

Index

Constructors

Properties

Accessors

Constructors

constructor

Properties

Readonly tileset

tileset: null | Tileset = null

Optional icon tileset

Readonly valueIds

valueIds: string[]

Array of this Enum's value ids

Readonly valueMap

valueMap: Readonly<Record<string, EnumValue>>

A map of Enum value ids to Enum values.

Readonly values

values: EnumValue[]

Array of this Enum's values

Readonly world

world: World

Accessors

id

  • get id(): string
  • Unique string identifier

    Returns string

uid

  • get uid(): number
  • Unique Int identifier

    Returns number

Generated using TypeDoc