Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Tick.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace Engine::Core
6{
18
24 {
25 public:
26 virtual ~ITickable() = default;
30 virtual void preTick();
36 virtual void tick( double deltaTimeSeconds );
37
41 virtual void postTick();
42 };
43
44 inline void ITickable::preTick() {}
45
46 inline void ITickable::tick( double deltaTimeSeconds ) {}
47
48 inline void ITickable::postTick() {}
49} // 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:46
virtual void postTick()
Function which executes immediately after the execution of ITickable::postTick()
Definition Tick.h:48
virtual ~ITickable()=default
virtual void preTick()
Function which executes immediately before the execution of ITickable::preTick()
Definition Tick.h:44
Core audio subsystem owning the miniaudio engine and managing playback.
Definition AudioConfig.h:9
@ PlayerLocomotionStep
Definition Tick.h:15
@ InputStep
Definition Tick.h:14
@ TrackedPoseStep
Definition Tick.h:16
@ DefaultStep
Definition Tick.h:13