| 11 | EmptyCmd, |
| 12 | } |
| 13 | |
| 14 | #[derive(Debug, Clone)] |
| 15 | pub(crate) enum Command { |
| 16 | Background { |
| 17 | name: String, |
| 18 | x_offset: Option<f32>, |
| 19 | y_offset: Option<f32>, |
| 20 | zoom: Option<f32>, |
| 21 | is_cg: bool, |
| 22 | }, |
| 23 | PlayBgm(String), |
| 24 | PlayVoice { |
| 25 | name: String, |
| 26 | voice: String, |
| 27 | }, |
| 28 | PlayVideo(String), |
| 29 | Dialogue { |
| 30 | speaker: String, |
| 31 | text: String, |
| 32 | }, |
| 33 | Figure { |
| 34 | name: String, |
| 35 | distance: String, |
| 36 | body: String, |
| 37 | face: String, |
| 38 | position: String, |
| 39 | delay: Option<String>, |
| 40 | }, |
| 41 | Move { |
| 42 | name: String, |
| 43 | distance: String, |
| 44 | position: String, |
| 45 | action: String, |
| 46 | repeat: i32, |
| 47 | delay: Option<String>, |
| 48 | }, |
| 49 | Clear(String), |
| 50 | Choice((String, HashMap<String, Label>)), |
| 51 | Jump(Label), |
| 52 | Label, |
| 53 | } |
| 54 | |
| 55 | impl Command { |
| 56 | pub(crate) fn delete_delay(&mut self) { |
nothing calls this directly
no outgoing calls
no test coverage detected