mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
0344f3eba8
Former-commit-id: 6c1990645fd07e23de5eb97b6fc22f34ce09a6b7
16 lines
282 B
Rust
16 lines
282 B
Rust
use specs::{Component, Entity as EcsEntity, VecStorage};
|
|
use vek::*;
|
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
pub enum Agent {
|
|
Wanderer(Vec2<f32>),
|
|
Pet {
|
|
target: EcsEntity,
|
|
offset: Vec2<f32>,
|
|
},
|
|
}
|
|
|
|
impl Component for Agent {
|
|
type Storage = VecStorage<Self>;
|
|
}
|