shake_comp.hpp 446 Bytes
Newer Older
Tim Scheiber's avatar
Tim Scheiber committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <mirrage/ecs/ecs.hpp>
#include <mirrage/utils/sf2_glm.hpp>

namespace phase_shifter::gameplay {

	struct Shake_comp : public mirrage::ecs::Component<Shake_comp> {
		static constexpr const char* name() { return "Shake"; }
		using Component::Component;

		float intesity = 0;
		float duration = 0; //duration in seconds
		float time_remaining = 0; //remaining shake time in seconds
	};
} // namespace phase_shifter::gameplay