veloren/common/src/generation.rs
2020-04-23 18:19:41 +01:00

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);
}
}