feat: subsurface reposition
This commit is contained in:
parent
4eb7f9b2fe
commit
8e7b7e586f
3 changed files with 32 additions and 3 deletions
|
|
@ -57,6 +57,13 @@ pub enum Action {
|
|||
/// id of the subsurface
|
||||
id: Id,
|
||||
},
|
||||
/// reposition the subsurface
|
||||
Reposition {
|
||||
/// id of the subsurface
|
||||
id: Id,
|
||||
x: i32,
|
||||
y: i32,
|
||||
},
|
||||
}
|
||||
|
||||
impl fmt::Debug for Action {
|
||||
|
|
@ -72,6 +79,11 @@ impl fmt::Debug for Action {
|
|||
"Action::SubsurfaceAction::Destroy {{ id: {:?} }}",
|
||||
id
|
||||
),
|
||||
Action::Reposition { id, x, y } => write!(
|
||||
f,
|
||||
"Action::SubsurfaceAction::Reposition {{ id: {:?}, x: {:?}, y: {:?} }}",
|
||||
id, x, y
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue