You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bevy_plugin/src/lib.rs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
//! - [`YarnSpinnerPlugin`]: The plugin registering all systems and types.
10
10
//! - [`YarnProject`]: A [`Resource`](bevy::prelude::Resource) for the compiled Yarn project, which is created for you when [`YarnSpinnerPlugin`] is added.
11
11
//! - [`DialogueRunner`]: The [`Component`](bevy::prelude::Component) running through the Yarn files and sending events for things you should draw on the screen.
12
-
//! Can be created from a [`YarnProject`].
12
+
//! Can be created from a [`YarnProject`].
13
13
//!
14
14
//! ## Dialogue Views
15
15
//!
@@ -39,7 +39,7 @@
39
39
//! The main workflow is as follows:
40
40
//! - Register the [`YarnSpinnerPlugin`]
41
41
//! - When the [`YarnProject`] [`Resource`](bevy::prelude::Resource) is added, spawn a [`DialogueRunner`] from it.
42
-
//! The latter can nicely be done with `my_system.run_if(resource_added::<YarnProject>)`.
42
+
//! The latter can nicely be done with `my_system.run_if(resource_added::<YarnProject>)`.
43
43
//!
44
44
//! The following example is adapted from the [hello world example](https://github.com/YarnSpinnerTool/YarnSpinner-Rust/blob/main/examples/bevy_yarnspinner/src/bin/hello_world.rs).
45
45
//!
@@ -53,7 +53,7 @@
53
53
//!
54
54
//! ```no_run
55
55
//! // src/main.rs
56
-
//! use bevy::{prelude::*, utils::Duration};
56
+
//! use bevy::prelude::*;
57
57
//! use bevy_yarnspinner::prelude::*;
58
58
//! // Use the example dialogue view to see the dialogue in action. Requires the `bevy_yarnspinner_example_dialogue_view` crate.
59
59
//! // use bevy_yarnspinner_example_dialogue_view::prelude::*;
0 commit comments