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