|
Engine²
Open-source game engine written in C++.
|
Functions | |
| auto | SetChildOf (Engine::Entity child, Engine::Entity parent) -> void |
| auto | IsChildOf (Engine::Entity child, Engine::Entity parent) -> bool |
| auto | RemoveParent (Engine::Entity child) -> void |
| auto | GetParent (Engine::Entity child) -> std::optional< Engine::Entity > |
| template<typename TFunc> | |
| auto | ForEachChild (Engine::Entity parent, TFunc func) -> void |
| auto Relationship::Utils::ForEachChild | ( | Engine::Entity | parent, |
| TFunc | func ) -> void |
| auto Relationship::Utils::GetParent | ( | Engine::Entity | child | ) | -> std::optional< Engine::Entity > |
Get the parent of an entity.
| child | child entity |
| auto Relationship::Utils::IsChildOf | ( | Engine::Entity | child, |
| Engine::Entity | parent ) -> bool |
Check if an entity is a child of another entity.
| parent | parent entity |
| child | child entity |
| auto Relationship::Utils::RemoveParent | ( | Engine::Entity | child | ) | -> void |
Remove the parent of an entity.
| child | child entity |
| auto Relationship::Utils::SetChildOf | ( | Engine::Entity | child, |
| Engine::Entity | parent ) -> void |
Set the child of an entity to another entity.
| parent | parent entity |
| child | child entity |