|
| Entity (EntityID id, Scene *scene) |
|
| Entity (const Entity &other)=default |
|
template<class C , typename... Args> |
Ref< C > | AddComponent (Args &&... args) |
|
template<class C , class G > |
Ref< C > | AddComponent (G c) |
| Adds a component of type C to an entity without args can take in any arbitrary type and attempts a dynamic cast.
|
|
template<class C > |
Ref< C > | AddComponent (C &&c) |
| Adds a component of type C to an entity without args.
|
|
template<class C > |
Ref< C > | GetComponent () |
| Adds a component of type C to an entity without args.
|
|
EntityID | GetID () const |
|
◆ AddComponent()
template<class C , typename... Args>
Ref<C> Engine::Entity::AddComponent |
( |
Args &&... |
args | ) |
|
|
inline |
Adds a component of type C to an entity with args specified. Allows us to construct the component on the fly.
The documentation for this class was generated from the following files: