A scene component has a transform.
More...
#include <SceneComponent.h>
|
| | Scene (Entities::Scene *scene) |
| | Scene (Entities::Scene *scene, const entt::entity &parent, const glm::mat4 &transform) |
| | Scene (Entities::Scene *scene, const entt::entity &parent, const glm::vec3 &position) |
| | Scene (Entities::Scene *scene, const entt::entity &parent, const glm::vec3 &position, const glm::quat &rotation) |
| | Scene (Entities::Scene *scene, const entt::entity &parent, const glm::vec3 &position, const glm::vec3 &rotation) |
| | Scene (Entities::Scene *scene, const entt::entity &parent, const glm::vec3 &position, const glm::quat &rotation, const glm::vec3 &scale) |
| | Logic (Entities::Scene *owningScene) |
| virtual | ~Logic ()=default |
| virtual std::string | getComponentName () const |
| | Gets the component type name for debugging/UI.
|
| virtual void | beginPlay () |
| | Called when the component is added to the scene or the game starts.
|
| virtual void | tick (double deltaTime) |
| | Called every frame if ticking is enabled.
|
| virtual void | endPlay () |
| | Called when the component is removed or the game ends.
|
| bool | hasBegunPlay () const |
| bool | canTick () const |
| | Checks if the component is currently set to tick.
|
| void | setCanTick (bool enable) |
| | Enables or disables ticking for this component.
|
| Entities::Entity * | getOwningEntity () const |
| | Gets the entity this component belongs to.
|
|
| static constexpr bool | IsUnique = false |
| | Defines whether multiple instances of this component can exist on the same entity. Defaults to false (multiple allowed). Override in derived classes with static constexpr bool IsUnique = true; if needed.
|
| static constexpr const char * | ComponentName = "Logic" |
| | Fallback component type name. Derived classes may override getComponentName() for custom labels.
|
| Entities::Scene * | getScene () const |
| | Gets the scene this component belongs to.
|
| Core::SceneManager * | getSceneManager () const |
| | Helper to get the SceneManager from the owning scene.
|
A scene component has a transform.
Definition at line 25 of file SceneComponent.h.
◆ Scene() [1/6]
◆ Scene() [2/6]
| Engine::Components::Scene::Scene |
( |
Entities::Scene * | scene, |
|
|
const entt::entity & | parent, |
|
|
const glm::mat4 & | transform ) |
|
explicit |
◆ Scene() [3/6]
| Engine::Components::Scene::Scene |
( |
Entities::Scene * | scene, |
|
|
const entt::entity & | parent, |
|
|
const glm::vec3 & | position ) |
|
explicit |
◆ Scene() [4/6]
| Engine::Components::Scene::Scene |
( |
Entities::Scene * | scene, |
|
|
const entt::entity & | parent, |
|
|
const glm::vec3 & | position, |
|
|
const glm::quat & | rotation ) |
|
explicit |
◆ Scene() [5/6]
| Engine::Components::Scene::Scene |
( |
Entities::Scene * | scene, |
|
|
const entt::entity & | parent, |
|
|
const glm::vec3 & | position, |
|
|
const glm::vec3 & | rotation ) |
|
explicit |
◆ Scene() [6/6]
| Engine::Components::Scene::Scene |
( |
Entities::Scene * | scene, |
|
|
const entt::entity & | parent, |
|
|
const glm::vec3 & | position, |
|
|
const glm::quat & | rotation, |
|
|
const glm::vec3 & | scale ) |
|
explicit |
◆ setParent()
| void Engine::Components::Scene::setParent |
( |
const entt::entity & | parent | ) |
|
|
private |
◆ component
| entt::entity Engine::Components::Scene::component = entt::null |
|
protected |
◆ parentComponent
| Ecs::Parent* Engine::Components::Scene::parentComponent = nullptr |
|
protected |
◆ transformComponent
| Ecs::Transform* Engine::Components::Scene::transformComponent = nullptr |
|
protected |
The documentation for this class was generated from the following file:
- /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Component/SceneComponent.h