|
NoJobEngine 2.0.7
|
#include <Entity.h>
Public Member Functions | |
| Entity ()=default | |
| Entity (std::uint32_t handle, Scene *scene) | |
| template<typename T, typename... Args> | |
| T & | AddComponent (Args &&... args) |
| template<typename T> | |
| void | RemoveComponent () |
| template<typename T> | |
| T & | GetComponent () |
| template<typename T> | |
| const T & | GetComponent () const |
| template<typename T> | |
| bool | HasComponent () const |
| operator bool () const | |
| std::uint32_t | GetHandle () const |
| Scene * | GetScene () const |
| bool | operator== (const Entity &other) const |
| bool | operator!= (const Entity &other) const |
Friends | |
| class | Scene |
| class | PrefabSerializer |
|
default |
|
inline |
| T & NoJob::Entity::AddComponent | ( | Args &&... | args | ) |
Definition at line 836 of file Scene.h.
Referenced by NoJob::PrefabSerializer::Instantiate(), NoJob::SceneSerializer::Load(), and main().
| T & NoJob::Entity::GetComponent | ( | ) |
Definition at line 851 of file Scene.h.
Referenced by NoJob::ProjectAssetOperations::CreatePrefab(), NoJob::Scene::DestroyEntity(), NoJob::ProjectPanel::Draw(), NoJob::Scene::GetChildren(), NoJob::Scene::GetParent(), NoJob::PrefabSerializer::Instantiate(), NoJob::SceneSerializer::Load(), main(), NoJob::GenericNeuralAgent::OnUpdate(), NoJob::PrefabSerializer::Revert(), NoJob::Scene::SetParent(), NoJob::Scene::SetWorldTransform(), and NoJob::Scene::Unparent().
| const T & NoJob::Entity::GetComponent | ( | ) | const |
|
inline |
Definition at line 41 of file Entity.h.
Referenced by NoJob::SceneSerializer::Load().
|
inline |
Definition at line 42 of file Entity.h.
References Scene.
Referenced by NoJob::BTAssetAgent::CreateTree(), NoJob::GenericNeuralAgent::OnUpdate(), and NoJob::NeuralTrainingAgent::OnUpdate().
| bool NoJob::Entity::HasComponent | ( | ) | const |
Definition at line 865 of file Scene.h.
Referenced by NoJob::ProjectAssetOperations::CreatePrefab(), NoJob::BTAssetAgent::CreateTree(), NoJob::ProjectPanel::Draw(), NoJob::SceneSerializer::Load(), main(), NoJob::GenericNeuralAgent::OnUpdate(), NoJob::NeuralTrainingAgent::OnUpdate(), and NoJob::PrefabSerializer::Revert().
|
inline |
|
inline |
| void NoJob::Entity::RemoveComponent | ( | ) |
|
friend |
Definition at line 59 of file Entity.h.
References PrefabSerializer.
Referenced by PrefabSerializer.
|
friend |