Проектная работа - WIP

This commit is contained in:
2 changed files with 24 additions and 10 deletions
+3 -6
View File
@@ -24,15 +24,12 @@ pub struct End;
#[derive(EntityEvent)]
pub struct GridBarier {
pub entity: Entity,
#[allow(unused)]
pub src_pos: Position,
#[allow(unused)]
pub dst_pos: Position,
pub pos: Position,
}
impl GridBarier {
pub fn new(entity: Entity, src_pos: Position, dst_pos: Position) -> Self {
Self { entity, src_pos, dst_pos }
pub fn new(entity: Entity, pos: Position) -> Self {
Self { entity, pos }
}
}