aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/ParticleSystem.h
blob: f171c6243ac59eb594acca48fd60f607a137da72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "../api/ParticleEmitter.h"

#include "System.h"

namespace crepe {

class ParticleSystem : public System {
public:
	using System::System;
	void update() override;

private:
	//! Emits a new particle
	void emit_particle(ParticleEmitter & emitter);

	//! Elapsed time since the last emission
	float elapsed_time = 0.0;
	// TODO: to std::chrono::duration
};

} // namespace crepe