Проектная работа - WIP
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user