(&self)
| 74 | } |
| 75 | |
| 76 | pub(crate) fn back(&self) -> Command { |
| 77 | if let Command::Move { |
| 78 | name, |
| 79 | distance, |
| 80 | position, |
| 81 | .. |
| 82 | } = self |
| 83 | { |
| 84 | Command::Move { |
| 85 | name: name.to_string(), |
| 86 | distance: distance.to_string(), |
| 87 | position: position.to_string(), |
| 88 | action: "back".to_string(), |
| 89 | repeat: 1, |
| 90 | delay: Some("150".to_string()), |
| 91 | } |
| 92 | } else { |
| 93 | unreachable!() |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | static VERSION: usize = 1; |
| 99 | |
| 100 | pub(crate) struct Parser { |
| 101 | script: Script, |
| 102 | block_index: usize, |