messages.hpp 573 Bytes
Newer Older
1
2
#pragma once

Florian Oetke's avatar
Florian Oetke committed
3
#include <mirrage/ecs/types.hpp>
Florian Oetke's avatar
Florian Oetke committed
4
#include <mirrage/utils/str_id.hpp>
5

6
7
8
#include <glm/vec3.hpp>


9
10
11
12
13
14
15
namespace phase_shifter {

	struct Win_msg {
	};
	struct Lose_msg {
	};

16
	struct Entity_hit_wall_msg {
Florian Oetke's avatar
Florian Oetke committed
17
18
		mirrage::ecs::Entity_handle entity;
	};
19
20
21
22
	struct Enemy_killed_msg {
		glm::vec3 position;
		glm::vec3 attack_direction;
	};
Florian Oetke's avatar
Florian Oetke committed
23

24
25
26
27
	struct Special_attack_msg {
		glm::vec3 position;
	};

Florian Oetke's avatar
Florian Oetke committed
28
29
30
31
	struct Play_sound_msg {
		mirrage::util::Str_id id;
	};

Tim Scheiber's avatar
Tim Scheiber committed
32
33
34
35
36
	struct Screen_shake_msg {
		float intensity;
		float duration; //duration in seconds
	};

37
} // namespace phase_shifter