Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::trail::TrailSystem Class Reference

#include <TrailSystem.hpp>

Public Member Functions

 TrailSystem ()=default
void update (ecs::Registry &registry, f32 dt)
void clear (Entity entity)
f32 now () const
const TrailState * getState (Entity entity) const

Detailed Description

Definition at line 36 of file TrailSystem.hpp.

Constructor & Destructor Documentation

◆ TrailSystem()

esengine::trail::TrailSystem::TrailSystem ( )
default

Member Function Documentation

◆ clear()

void esengine::trail::TrailSystem::clear ( Entity entity)

Drop an entity's recorded history (the streak vanishes instantly).

Definition at line 61 of file TrailSystem.cpp.

◆ getState()

const TrailState * esengine::trail::TrailSystem::getState ( Entity entity) const

Definition at line 65 of file TrailSystem.cpp.

◆ now()

f32 esengine::trail::TrailSystem::now ( ) const
inline

The monotonic sim clock (seconds), the reference for every point's age.

Definition at line 47 of file TrailSystem.hpp.

◆ update()

void esengine::trail::TrailSystem::update ( ecs::Registry & registry,
f32 dt )

Advance the sim: record new points for moving emitters, age out old ones.

Definition at line 7 of file TrailSystem.cpp.

References esengine::ecs::Registry::activeView(), esengine::ecs::Transform::ensureDecomposed(), and esengine::ecs::Registry::onDestroy().


The documentation for this class was generated from the following files: