veloren_voxygen/ecs/
comp.rs1use common::{comp::Ori, outcome::HealthChangeInfo};
2use specs::{Component, VecStorage};
3use vek::*;
4
5#[derive(Copy, Clone, Debug)]
8pub struct HpFloater {
9 pub timer: f32,
10 pub jump_timer: f32,
12 pub info: HealthChangeInfo,
13 pub rand: f32,
15}
16#[derive(Clone, Debug, Default)]
17pub struct HpFloaterList {
18 pub floaters: Vec<HpFloater>,
20
21 pub time_since_last_dmg_by_me: Option<f32>,
24}
25impl Component for HpFloaterList {
26 type Storage = VecStorage<Self>;
27}
28
29#[derive(Copy, Clone, Debug)]
32pub struct Interpolated {
33 pub pos: Vec3<f32>,
34 pub ori: Ori,
35}
36impl Component for Interpolated {
37 type Storage = VecStorage<Self>;
38}