wima
    Preparing search index...

    Class World

    Index

    Constructors

    Methods

    • This removes all of the entities and components from the manager.

      Returns void

    • Type Parameters

      • T extends {}[]

      Parameters

      • entities: [...T[]][]

      Returns void

    • Removes an entity from the registry. Note that this doesn't destroy the entity, only removes it and its components from the manager. To destroy the entity,use Entity.destroy() method.

      Parameters

      • entity: Entity

        The entity to remove.

      Returns void

    • Type Parameters

      • T

      Parameters

      • resourceType: new (...args: any[]) => T

      Returns T

    • Inserts components into an entity.

      Type Parameters

      • T extends object[]

      Parameters

      • entity: Entity
      • components: [...T[]]

        The entity to add.

      Returns void

    • Type Parameters

      • T extends object

      Parameters

      • resource: T

      Returns void

    • Adds an entity to the registry.

      Type Parameters

      • T extends {}[]

      Parameters

      • components: [...T[]]

        The entity to add.

      Returns Entity