mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
24 lines
358 B
Rust
24 lines
358 B
Rust
use vek::*;
|
|
|
|
pub enum EntityKind {
|
|
Enemy,
|
|
Boss,
|
|
Waypoint,
|
|
}
|
|
|
|
pub struct EntityInfo {
|
|
pub pos: Vec3<f32>,
|
|
pub kind: EntityKind,
|
|
}
|
|
|
|
#[derive(Default)]
|
|
pub struct ChunkSupplement {
|
|
pub entities: Vec<EntityInfo>,
|
|
}
|
|
|
|
impl ChunkSupplement {
|
|
pub fn add_entity(&mut self, entity: EntityInfo) {
|
|
self.entities.push(entity);
|
|
}
|
|
}
|