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

Enum Command

src/parser/script_parser.rs:13–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 EmptyCmd,
12}
13
14#[derive(Debug, Clone)]
15pub(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
55impl Command {
56 pub(crate) fn delete_delay(&mut self) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected