Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Tick.h
1#pragma once
2
3#include <cstdint>
4
5namespace Engine::Core
6{
18
24 {
25 public:
29 virtual ~ITickable() = default;
33 virtual void preTick();
39 virtual void tick( double deltaTimeSeconds );
40
44 virtual void postTick();
45 };
46
47 inline void ITickable::preTick() {}
48
49 inline void ITickable::tick( double deltaTimeSeconds ) {}
50
51 inline void ITickable::postTick() {}
52} // namespace EngineCore
This is the interface which is used to call a tick function on an object. Everything which should be ...
Definition Tick.h:24
virtual void tick(double deltaTimeSeconds)
Function called each frame when a tick component has been registered with EnTT Ecs::Tick.
Definition Tick.h:49
virtual void postTick()
Function which executes immediately after the execution of ITickable::postTick()
Definition Tick.h:51
virtual ~ITickable()=default
Destroys a tickable object.
virtual void preTick()
Function which executes immediately before the execution of ITickable::preTick()
Definition Tick.h:47
@ PlayerLocomotionStep
Player movement update order after input.
Definition Tick.h:15
@ InputStep
Input collection and action processing order.
Definition Tick.h:14
@ TrackedPoseStep
XR pose update order before input consumers.
Definition Tick.h:16
@ DefaultStep
Default tick order.
Definition Tick.h:13