Implement relationships in the ECS #3
|
@ -37,7 +37,7 @@ pub trait FnArgFetcher {
|
|||
/// fetched on the fly.
|
||||
///
|
||||
/// ```fail_compile
|
||||
/// fn enemy_movement_system(enemies: ViewState<(&Health, &EnemyStats, &Movement)>) -> anyhow::Result<()> {
|
||||
/// fn enemy_movement_system(enemies: View<(&Health, &EnemyStats, &Movement)>) -> anyhow::Result<()> {
|
||||
/// for (health, stats, movement) in enemies.iter() {
|
||||
/// // ...
|
||||
/// }
|
||||
|
|
Loading…
Reference in New Issue