-#[throws(Explode)]
-fn move_money<PI:Idx>(alice: &mut Session,
- a_pieces: &mut Pieces<PI>, piece: PI,
- qty: i32, z: &str, pos: Pos) {
- alice.api_piece_op_single(PuSynch((&mut *a_pieces, piece)).id(), (
- "multigrab", json!({ "n": qty, 'z': z })
- ))?;
-
- alice.api_piece(GH::Ungrab, PuSynch((&mut *a_pieces, piece)), pos)?;
+impl Session {
+ #[throws(Explode)]
+ fn move_money<PI:Idx>(&mut self,
+ a_pieces: &mut Pieces<PI>, piece: PI,
+ qty: i32, z: &str, pos: Pos) {
+ self.api_piece_op_single(PuSynch((&mut *a_pieces, piece)).id(), (
+ "multigrab", json!({ "n": qty, 'z': z })
+ ))?;
+
+ self.api_piece(GH::Ungrab, PuSynch((&mut *a_pieces, piece)), pos)?;
+ }