50caabc4fddd5feefb64899ed6c060ee786be50b
[carveJwlIkooP6JGAAIwe30JlM.git] / player_effects.h
1 #pragma once
2 #include "vg/vg_platform.h"
3
4 typedef struct effect_blink effect_blink;
5 typedef struct effect_spark effect_spark;
6
7 struct effect_blink
8 {
9 f32 t, l;
10 };
11
12 struct effect_spark
13 {
14 u32 colour;
15 f32 t;
16 };
17
18 void effect_blink_apply( effect_blink *ef, player_pose *pose, f32 dt );
19 void effect_spark_apply( effect_spark *ef, v3f co, v3f v, f32 dt );
20
21 struct player_effects_data
22 {
23 effect_blink blink;
24 effect_spark spark, sand;
25 };