Unravel Engine C++ Reference
Loading...
Searching...
No Matches
particle_system.h
Go to the documentation of this file.
1#pragma once
2
3#include <engine/ecs/ecs.h>
6#include <base/basetypes.hpp>
7#include <context/context.hpp>
9
10namespace unravel
11{
12
18{
19public:
20 particle_system() = default;
21 ~particle_system() = default;
22
23 // Disable copy and move operations
25 auto operator=(const particle_system&) -> particle_system& = delete;
28
34 auto init(rtti::context& ctx) -> bool;
35
41 auto deinit(rtti::context& ctx) -> bool;
42
49
50
51private:
53 bool initialized_ = false;
54};
55
56} // namespace unravel
System that manages and updates particle emitters in the ECS.
auto deinit(rtti::context &ctx) -> bool
Deinitializes the particle system.
auto operator=(const particle_system &) -> particle_system &=delete
auto init(rtti::context &ctx) -> bool
Initializes the particle system.
auto operator=(particle_system &&) -> particle_system &=delete
void on_frame_before_render(scene &scn, delta_t dt)
Updates all particle emitters in the scene.
particle_system(particle_system &&)=delete
particle_system(const particle_system &)=delete
std::chrono::duration< float > delta_t
Represents a scene in the ACE framework, managing entities and their relationships.
Definition scene.h:21