EntityManager.addComponents

Add components to entity. Components will be added on end of frame.

  1. void addComponents(EntityID entity_id, Components comps)
    struct EntityManager
    nothrow @nogc
    void
    addComponents
    (
    Components...
    )
    (,
    Components comps
    )
  2. void addComponents(EntityID entity_id, ComponentRef[] comps)

Parameters

entity_id EntityID

ID of entity to remove

comps Components

components to add

Meta