@game-vir/entity - v15.1.1
    Preparing search index...

    Class ConstructorMap

    Map all ancestor constructors of an object to the objects.

    Index

    Constructors

    Properties

    isDestroyed: boolean = false
    map: Map<Function, Set<AnyObject>> = ...

    A map of constructors to their added instances.

    topMostConstructor: undefined | Function = undefined

    Methods

    • Gets all added instances of the given constructor.

      Type Parameters

      • T

      Parameters

      • constructor: AbstractConstructor<T> | Constructor<T>

      Returns Set<T>

    • Recursively map all ancestor prototypes to the given instance.

      Parameters

      • instance: AnyObject
      • prototype: any
      • operation: "add" | "remove"

      Returns void