1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! Test automation and inspection: scripted steps, screenshots and remote control.
//!
//! This module lets a program (a test script, a CI job, an AI agent) drive a
//! running game and look at the result without a person at the keyboard.
//!
//! Only [`AutomationId`] is always available. Everything else lives behind the
//! `automation` cargo feature, and even with the feature compiled in nothing
//! runs unless the game adds `AutomationPlugin::enabled(..)`. The framework
//! never reads command-line arguments or environment variables to turn it on:
//! the game decides, typically from a flag of its own.
//!
//! See `docs/automation.md` for the script format and the remote methods.
use *;
pub use ;
/// Stable name for a UI element, used to find it from an automation script.
///
/// Attach it to your own buttons and panels so scripts do not depend on the
/// text shown to the player:
///
/// ```rust
/// use bevy::prelude::*;
/// use voxel_framework::prelude::*;
///
/// fn spawn_start_button(mut commands: Commands) {
/// commands.spawn((Button, Text::new("Start"), AutomationId::new("main_menu.start")));
/// }
/// ```
///
/// The component is a plain label. It is compiled regardless of the
/// `automation` feature, so tagging UI needs no `cfg`, and it does nothing on
/// its own.
;