EntityTemplate.getComponent

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

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

Meta