Interface IMutableWorld

Hierarchy

Implemented by

Methods

  • Add several entities in this world to a group in this world

    Parameters

    • groupHandle: number
    • entities: IterableIterator<IEntity> | readonly Readonly<IEntity>[]

    Returns void

  • Add an entity in this world to a group in this world

    Parameters

    • groupHandle: number
    • entity: Readonly<IEntity>

    Returns void

  • Add a resource to this world and returns the resource instance

    Type Parameters

    • T extends object

    Parameters

    • type: T | TTypeProto<T>
    • Rest ...args: readonly unknown[]

      constructor parameters

    Returns T | TTypeProto<T>

  • Move group from other world to this one. A new handle will be generated!

    Parameters

    Returns number

  • Remove a group and all entities inside from this world

    Parameters

    • groupHandle: number

    Returns void

  • Remove a resource from this world

    Type Parameters

    • T extends object

    Parameters

    • type: TTypeProto<T>

    Returns void

Generated using TypeDoc