CoriEngine
Loading...
Searching...
No Matches
Transform.hpp
Go to the documentation of this file.
1#pragma once
2#include "System.hpp"
3
4namespace Cori {
5 namespace World {
6 namespace Systems {
7 class Transform final : public System {
8 public:
9
10 void OnUpdate(Core::GameTimer& gameTimer) override;
11
12 bool Create();
13
14 static constexpr SystemPriority Priority = 50;
15
16 private:
17 void UpdateTransform();
18 void UpdateTransformRecursive(entt::entity entity, const glm::mat3& parentTransform, const uint8_t parentDepth, const bool parentTransformDirty, const bool parentDepthDirty);
19
20 void OnTransformCreate(entt::registry& registry, entt::entity entity);
21 };
22 }
23 }
24}
A GameTimer is responsible for managing everything that is connected with time, ticks,...
Definition Time.hpp:8
System(const System &)=delete
static constexpr SystemPriority Priority
Definition Transform.hpp:14
void OnUpdate(Core::GameTimer &gameTimer) override
Definition Transform.cpp:7
Anything connected to WorldSystem (ECS) is in this namespace.
uint16_t SystemPriority
Definition Concept.hpp:5
Global engine namespace.