@@ -54,7 +54,7 @@ fn main() {
54
54
* Stepping::continue_frame() is called
55
55
* System has been configured to always run"#
56
56
) ;
57
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
57
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
58
58
stepping. add_schedule ( Update ) . enable ( ) ;
59
59
app. update ( ) ;
60
60
@@ -65,7 +65,7 @@ fn main() {
65
65
Stepping, step means run the next system across all the schedules
66
66
that have been added to the Stepping resource."#
67
67
) ;
68
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
68
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
69
69
stepping. step_frame ( ) ;
70
70
app. update ( ) ;
71
71
@@ -89,7 +89,7 @@ fn main() {
89
89
case, we previously performed a step, running one system in Update.
90
90
This continue will cause all remaining systems in Update to run."#
91
91
) ;
92
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
92
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
93
93
stepping. continue_frame ( ) ;
94
94
app. update ( ) ;
95
95
@@ -102,7 +102,7 @@ fn main() {
102
102
systems."#
103
103
) ;
104
104
for _ in 0 ..4 {
105
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
105
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
106
106
stepping. step_frame ( ) ;
107
107
app. update ( ) ;
108
108
}
@@ -116,10 +116,10 @@ fn main() {
116
116
execute all systems in the frame. Stepping::always_run() allows
117
117
us to granularly allow systems to run when stepping is enabled."#
118
118
) ;
119
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
119
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
120
120
stepping. always_run ( Update , update_system_two) ;
121
121
for _ in 0 ..3 {
122
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
122
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
123
123
stepping. step_frame ( ) ;
124
124
app. update ( ) ;
125
125
}
@@ -132,7 +132,7 @@ fn main() {
132
132
Stepping::never_run() allows us to disable systems while Stepping
133
133
is enabled."#
134
134
) ;
135
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
135
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
136
136
stepping. never_run ( Update , update_system_two) ;
137
137
stepping. continue_frame ( ) ;
138
138
app. update ( ) ;
@@ -155,14 +155,14 @@ fn main() {
155
155
During the final continue pre_update_system() and
156
156
update_system_three() run."#
157
157
) ;
158
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
158
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
159
159
stepping. set_breakpoint ( Update , update_system_two) ;
160
160
stepping. continue_frame ( ) ;
161
161
app. update ( ) ;
162
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
162
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
163
163
stepping. step_frame ( ) ;
164
164
app. update ( ) ;
165
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
165
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
166
166
stepping. continue_frame ( ) ;
167
167
app. update ( ) ;
168
168
@@ -172,7 +172,7 @@ fn main() {
172
172
through all systems
173
173
Result: All systems will run"#
174
174
) ;
175
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
175
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
176
176
stepping. clear_breakpoint ( Update , update_system_two) ;
177
177
stepping. continue_frame ( ) ;
178
178
app. update ( ) ;
@@ -184,7 +184,7 @@ fn main() {
184
184
call Stepping::step_frame() or Stepping::continue_frame() to run
185
185
systems in the Update schedule."#
186
186
) ;
187
- let mut stepping = app. world . resource_mut :: < Stepping > ( ) ;
187
+ let mut stepping = app. world_mut ( ) . resource_mut :: < Stepping > ( ) ;
188
188
stepping. disable ( ) ;
189
189
app. update ( ) ;
190
190
}
0 commit comments