Commit bb25076
Merge amethyst#1882
1882: Maintenance/update amethyst test r=distransient,jojolepro a=azriel91
## Description
Updated `amethyst_test::AmethystApplication` to take both `System` and `SystemDesc`
(currently sits on top of amethyst#1881 so that CI succeeds).
## Additions
* `AmethystApplication` takes in `SystemDesc`s through `with_system_desc`.
* `AmethystApplication::with_thread_local_desc` takes in `RunNowDesc`.
## Modifications
* `AmethystApplication` takes in a `System` instead of a closure for `with_system`.
* `AmethystApplication::with_thread_local` constraint relaxed to `RunNow` (previously `System`).
## PR Checklist
By placing an x in the boxes I certify that I have:
- [x] Updated the content of the book if this PR would make the book outdated.
- [x] Added a changelog entry if this will impact users, or modified more than 5 lines of Rust that wasn't a doc comment.
- **n/a** Added unit tests for new code added in this PR.
- [x] Acknowledged that by making this pull request I release this code under an MIT/Apache 2.0 dual licensing scheme.
If this modified or created any rs files:
- [x] Ran `cargo +stable fmt --all`
- [x] Ran `cargo clippy --all --features "empty"`
- [x] Ran `cargo test --all --features "empty"`
Co-authored-by: Azriel Hoh <[email protected]>File tree
33 files changed
+449
-324
lines changed- amethyst_controls/src
- amethyst_derive/tests
- amethyst_gltf
- amethyst_test/src
- state
- book/src/pong-tutorial
- docs
- examples
- animation
- arc_ball_camera
- asset_loading
- auto_fov
- custom_game_data
- debug_lines_ortho
- debug_lines
- fly_camera
- gltf
- material
- pong_tutorial_02
- pong_tutorial_03
- pong_tutorial_04
- pong_tutorial_05
- pong
- prefab
- renderable
- rendy
- sphere
- sprite_camera_follow
- sprites_ordered
- ui
33 files changed
+449
-324
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | 233 | | |
241 | 234 | | |
242 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
392 | 411 | | |
393 | 412 | | |
394 | 413 | | |
395 | 414 | | |
396 | 415 | | |
397 | 416 | | |
398 | 417 | | |
399 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
400 | 424 | | |
401 | | - | |
402 | 425 | | |
403 | 426 | | |
404 | 427 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 428 | + | |
411 | 429 | | |
412 | 430 | | |
413 | 431 | | |
414 | 432 | | |
415 | 433 | | |
416 | 434 | | |
417 | | - | |
418 | | - | |
| 435 | + | |
| 436 | + | |
419 | 437 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
| 438 | + | |
| 439 | + | |
425 | 440 | | |
426 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
427 | 468 | | |
428 | 469 | | |
429 | 470 | | |
| |||
436 | 477 | | |
437 | 478 | | |
438 | 479 | | |
439 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
440 | 486 | | |
441 | | - | |
442 | 487 | | |
443 | 488 | | |
444 | 489 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | 490 | | |
451 | 491 | | |
452 | | - | |
| 492 | + | |
453 | 493 | | |
454 | 494 | | |
455 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | | - | |
178 | | - | |
| 176 | + | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
186 | | - | |
187 | | - | |
| 184 | + | |
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
| |||
198 | 195 | | |
199 | 196 | | |
200 | 197 | | |
201 | | - | |
| 198 | + | |
| 199 | + | |
202 | 200 | | |
203 | 201 | | |
204 | 202 | | |
| |||
224 | 222 | | |
225 | 223 | | |
226 | 224 | | |
227 | | - | |
228 | | - | |
229 | 225 | | |
230 | 226 | | |
231 | 227 | | |
| |||
236 | 232 | | |
237 | 233 | | |
238 | 234 | | |
239 | | - | |
| 235 | + | |
240 | 236 | | |
241 | 237 | | |
242 | 238 | | |
| |||
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
288 | | - | |
289 | | - | |
290 | 284 | | |
291 | 285 | | |
292 | 286 | | |
293 | 287 | | |
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
297 | | - | |
| 291 | + | |
298 | 292 | | |
299 | 293 | | |
300 | 294 | | |
| |||
340 | 334 | | |
341 | 335 | | |
342 | 336 | | |
| 337 | + | |
343 | 338 | | |
344 | 339 | | |
345 | 340 | | |
| |||
350 | 345 | | |
351 | 346 | | |
352 | 347 | | |
| 348 | + | |
353 | 349 | | |
354 | 350 | | |
0 commit comments