ST_engine  0.3-ALPHA
message_types.hpp
1 /* This file is part of the "ST" project.
2  * You may use, distribute or modify this code under the terms
3  * of the GNU General Public License version 2.
4  * See LICENCE.txt in the root directory of the project.
5  *
6  * Author: Maxim Atanasov
7  * E-mail: maxim.atanasov@protonmail.com
8  */
9 
10 #ifndef ST_MESSAGE_TYPES_HPP
11 #define ST_MESSAGE_TYPES_HPP
12 
13 //all the different messages are defined in this enum
14 //to define a new one just add its name here - they are all used as integers
15 
16 enum msg_type : uint8_t {
17 
21  SET_DARKNESS,
22 
29  PLAY_SOUND,
30 
37  PLAY_MUSIC,
38 
42  STOP_MUSIC,
43 
47  SET_AUDIO_ENABLED,
48 
52  AUDIO_ENABLED,
53 
57  PAUSE_MUSIC,
58 
62  SET_SOUNDS_VOLUME,
63 
67  SOUNDS_VOLUME_LEVEL,
68 
72  SET_MUSIC_VOLUME,
73 
77  MUSIC_VOLUME_LEVEL,
78 
82  LOAD_LEVEL,
83 
87  START_LEVEL,
88 
92  UNLOAD_LEVEL,
93 
97  RELOAD_LEVEL,
98 
102  LOG_ERROR,
103 
107  LOG_SUCCESS,
108 
112  LOG_INFO,
113 
117  CONSOLE_TOGGLE,
118 
122  CONSOLE_CLEAR,
123 
127  SHOW_COLLISIONS,
128 
132  LOAD_LIST,
133 
137  UNLOAD_LIST,
138 
142  SURFACES_ASSETS,
143 
147  FONTS_ASSETS,
148 
152  CHUNKS_ASSETS,
153 
157  MUSIC_ASSETS,
158 
162  KEY_PRESSED,
163 
167  KEY_HELD,
168 
172  KEY_RELEASED,
173 
177  MOUSE_X,
178 
182  MOUSE_Y,
183 
187  MOUSE_SCROLL,
188 
189 
193  SET_GRAVITY,
194 
198  SET_FRICTION,
199 
203  SET_FLOOR,
204 
208  END_GAME,
209 
213  STOP_ALL_SOUNDS,
214 
215 
220  VIRTUAL_SCREEN_COORDINATES,
221 
226  REAL_SCREEN_COORDINATES,
227 
231  PAUSE_PHYSICS,
232 
236  UNPAUSE_PHYSICS,
237 
241  START_TEXT_INPUT,
242 
246  STOP_TEXT_INPUT,
247 
251  TEXT_STREAM,
252 
256  CLEAR_TEXT_STREAM,
257 
261  SHOW_MOUSE,
262 
266  SHOW_FPS,
267 
271  SHOW_METRICS,
272 
276  ENABLE_LIGHTING,
277 
281  REGISTER_KEY,
282 
286  UNREGISTER_KEY,
287  SET_WINDOW_BRIGHTNESS,
288 
292  EXECUTE_SCRIPT,
293 
297  SET_FULLSCREEN,
298 
302  FULLSCREEN_STATUS,
303 
307  LOAD_ASSET,
308 
312  UNLOAD_ASSET,
313 
317  LOAD_BINARY,
318 
323  SET_INTERNAL_RESOLUTION,
324 
329  SET_WINDOW_RESOLUTION,
330 
331 
335  SET_VSYNC,
336 
340  VSYNC_STATE,
341 
345  LEFT_TRIGGER,
346 
350  RIGHT_TRIGGER,
351 
355  RIGHT_STICK_VERTICAL,
356 
360  RIGHT_STICK_HORIZONTAL,
361 
365  LEFT_STICK_VERTICAL,
366 
370  LEFT_STICK_HORIZONTAL,
371 
375  CONTROLLER_RUMBLE,
376 
380  SET_LEFT_JOYSTICK_HORIZONTAL_THRESHOLD,
381 
385  SET_LEFT_JOYSTICK_VERTICAL_THRESHOLD,
386 
390  SET_RIGHT_JOYSTICK_HORIZONTAL_THRESHOLD,
391 
395  SET_RIGHT_JOYSTICK_VERTICAL_THRESHOLD,
396 
400  SET_RIGHT_TRIGGER_THRESHOLD,
401 
405  SET_LEFT_TRIGGER_THRESHOLD
406 };
407 
408 #endif //ST_MESSAGE_TYPES_HPP