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
3namespace EngineCore
4{
10 {
11 public:
12 virtual ~ITickable() = default;
16 virtual void preTick();
22 virtual void tick( double deltaTimeSeconds );
23
27 virtual void postTick();
28 };
29
30 inline void ITickable::preTick() {}
31
32 inline void ITickable::tick( double deltaTimeSeconds ) {}
33
34 inline void ITickable::postTick() {}
35} // namespace EngineCore
This is the interface which is used to call a tick function on an object. Everything which should be ...
Definition Tick.h:10
virtual ~ITickable()=default
virtual void tick(double deltaTimeSeconds)
Function called each frame when a tick component has been registered with EnTT Ecs::Tick.
Definition Tick.h:32
virtual void preTick()
Function which executes immediately before the execution of ITickable::preTick()
Definition Tick.h:30
virtual void postTick()
Function which executes immediately after the execution of ITickable::postTick()
Definition Tick.h:34
Log category system implementation.