Перейти к основному содержанию

Updatable

Module used to create and manage Updatables. Updatables provide the proper way to manage objects that update their state every tick. Updatables may not be notified every tick, if there are too many, to avoid user interface freezes.

Index

Functions

addAnimator

  • since: 2.0.4b40

    Adds object to updatables list, that ticks on client thread and never saves.


    Parameters

    • updatable: Updatable

      object to be added to updatables list

    Returns void

addLocalUpdatable

  • addLocalUpdatable(updatable: Updatable): void
  • since: 2.0.4b40

    Adds object to updatables list, that ticks on client thread and never saves.


    Parameters

    • updatable: Updatable

      object to be added to updatables list

    Returns void

addUpdatable

  • Adds object to updatables list.


    Parameters

    • updatable: Updatable

      object to be added to updatables list

    Returns void

getAll

getAllLocal

getLocalSyncTime

  • getLocalSyncTime(): number
  • since: 2.4.0b122o1

    Returns number

    Current client-side thread tick number.

getSyncTime

  • getSyncTime(): number
  • Returns number

    Current server-side thread tick number.