Packages
recs
enums
Updatetype

@latticexyz/recs / UpdateType

Enumeration: UpdateType

Used to specify type of ComponentUpdate.

  • Enter: Update added a value to an entity that did not have a value before
  • Exit: Update removed a value from an entity that had a value before
  • Update: Update changed a value of an entity that already had a value before. Note: the value doesn't need to be different from the previous value.
  • Noop: Update did nothing (removed a value from an entity that did not have a value)

Table of contents

Enumeration Members

Enumeration Members

Enter

Enter = 0

Defined in

constants.ts:35 (opens in a new tab)


Exit

Exit = 1

Defined in

constants.ts:36 (opens in a new tab)


Noop

Noop = 3

Defined in

constants.ts:38 (opens in a new tab)


Update

Update = 2

Defined in

constants.ts:37 (opens in a new tab)