MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / back

Method back

src/parser/script_parser.rs:76–99  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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
98static VERSION: usize = 1;
99
100pub(crate) struct Parser {
101 script: Script,
102 block_index: usize,

Callers 1

show_moveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected