Entity.getComponent

Get specified component. If component doesn't exist function retun null. Pointer is valid only before next "commit()", "begin()" or "end()" function is called. Returned pointer shouldn't be used to store reference to entity data.

  1. T* getComponent()
    struct Entity
    const
    T*
    getComponent
    (
    T
    )
    ()
  2. void* getComponent(ushort component_id)

Meta