Options
All
  • Public
  • Public/Protected
  • All
Menu

A container for objects lists that should last more than the current frame. It automatically removes objects that were destroyed from the objects lists.

Hierarchy

  • LongLivedObjectsList

Index

Methods

  • addObject(objectName: string, runtimeObject: RuntimeObject): void
  • Parameters

    Returns void

  • Create a new container for objects lists, inheriting from another one. This is useful should we get the objects that have not been saved in this context (using addObject) but saved in a parent context. This avoids to save all object lists every time we create a new LongLivedObjectsList, despite not all objects lists being used.

    Parameters

    Returns LongLivedObjectsList

  • removeObject(objectName: string, runtimeObject: RuntimeObject): void
  • Parameters

    Returns void

Constructors

Properties

callbacks: Map<RuntimeObject, () => void> = ...
objectsLists: Map<string, RuntimeObject[]> = ...
parent: null | LongLivedObjectsList = null

Generated using TypeDoc