Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ecs::Tick Struct Reference

One simulation step, as the systems see it. More...

#include <aegis2d/ecs/system.hpp>

Public Member Functions

constexpr float delta () const noexcept
 Duration of the step in seconds, to scale values given per second.
 

Public Attributes

core::Duration step {}
 Duration of the step, the fixed step of core::MainLoop.
 
std::uint64_t index = 0
 Number of the tick: 0 for the first Scheduler::update(), then one more per completed update.
 

Detailed Description

One simulation step, as the systems see it.

Member Function Documentation

◆ delta()

constexpr float aegis2d::ecs::Tick::delta ( ) const
inlineconstexprnoexcept

Duration of the step in seconds, to scale values given per second.

Returns
step in seconds, e.g. about 0.0167F at 60 Hz.

Member Data Documentation

◆ index

std::uint64_t aegis2d::ecs::Tick::index = 0

Number of the tick: 0 for the first Scheduler::update(), then one more per completed update.

◆ step

core::Duration aegis2d::ecs::Tick::step {}

Duration of the step, the fixed step of core::MainLoop.


The documentation for this struct was generated from the following file: