EntityTemplate.getComponent

Get specified component. If component doesn't exist function return null. Returned pointer is valid during EntityTemplate lifetime.

  1. T* getComponent()
  2. void* getComponent(ushort component_id)
    struct EntityTemplate
    const nothrow @nogc
    void*
    getComponent
    ()

Meta