File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pub struct YoleckLevelIndexEntry {
33
33
/// let level_index_handle = level_index_handle
34
34
/// .get_or_insert_with(|| asset_server.load("levels/index.yoli"))
35
35
/// .clone();
36
- /// let Some(level_index) = level_index_assets.get(level_index_handle) else {
36
+ /// let Some(level_index) = level_index_assets.get(& level_index_handle) else {
37
37
/// // During the first invocation of this system, the level index asset is not going to be
38
38
/// // loaded just yet. Since this system is going to run on every frame during the Loading
39
39
/// // state, it just has to keep trying until it starts in a frame where it is loaded.
Original file line number Diff line number Diff line change 136
136
//! populate.populate(|_ctx, mut cmd, rectangle| {
137
137
//! cmd.insert(SpriteBundle {
138
138
//! sprite: Sprite {
139
- //! color: Color:: RED,
139
+ //! color: bevy::color::palettes::css:: RED.into() ,
140
140
//! custom_size: Some(Vec2::new(rectangle.width, rectangle.height)),
141
141
//! ..Default::default()
142
142
//! },
163
163
//! let level_index_handle = level_index_handle
164
164
//! .get_or_insert_with(|| asset_server.load("levels/index.yoli"))
165
165
//! .clone();
166
- //! let Some(level_index) = level_index_assets.get(level_index_handle) else {
166
+ //! let Some(level_index) = level_index_assets.get(& level_index_handle) else {
167
167
//! // During the first invocation of this system, the level index asset is not going to be
168
168
//! // loaded just yet. Since this system is going to run on every frame during the Loading
169
169
//! // state, it just has to keep trying until it starts in a frame where it is loaded.
@@ -628,7 +628,7 @@ pub(crate) struct YoleckState {
628
628
/// use bevy::ecs::system::SystemState;
629
629
/// # use bevy_yoleck::{YoleckEditorSections, egui};
630
630
/// # let mut app = App::new();
631
- /// app.world .resource_mut::<YoleckEditorSections>().0.push((|world: &mut World| {
631
+ /// app.world_mut() .resource_mut::<YoleckEditorSections>().0.push((|world: &mut World| {
632
632
/// let mut system_state = SystemState::<(
633
633
/// Res<Time>,
634
634
/// )>::new(world);
You can’t perform that action at this time.
0 commit comments