Skip to content

Fixed ECS example compilation issues#3083

Closed
crener wants to merge 2 commits intobevyengine:mainfrom
crener:main
Closed

Fixed ECS example compilation issues#3083
crener wants to merge 2 commits intobevyengine:mainfrom
crener:main

Conversation

@crener
Copy link

@crener crener commented Nov 6, 2021

If you paste the old 'Using Bevy ECS' sample code and try to compile it you will get error messages

  • system() is not being called for the movement system in the scheduler
  • The movement systems Query is not mutableable which the rust compiler doesn't like

Fixes compile errors so that new users don't have this issue when trying to lean from the samples.

If you paste the old 'Using Bevy ECS' sample code and try to compile it you will get error messages 
 - system() is not being called for the movement system in the scheduler
 - The movement systems Query is not mutableable which the rust compiler doesn't like

This small commit fixes that so that new users don't have this issue when trying to lean from the samples.
@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Nov 6, 2021
// before moving on to the next Stage
schedule.add_stage("update", SystemStage::parallel()
.with_system(movement)
.with_system(movement.system())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With 0.6 (#2398) the usage of .system() is now optional and all examples should no longer contain it.
This change should be reverted.

@DJMcNab
Copy link
Member

DJMcNab commented Nov 6, 2021

These fixes are already done in #2575.

As of #2398, .system is optional. You shouldn't be using the readme from main when using the 0.5 version of the crate.

Noticed that I accidentally changed the use format from 'bevy_ecs' to 'bevy' which seems to be the standard for the crate examples, So reverted that change.
@DJMcNab DJMcNab added C-Docs An addition or correction to our documentation and removed S-Needs-Triage This issue needs to be labelled labels Nov 6, 2021
@crener crener closed this Nov 6, 2021
@crener crener reopened this Nov 6, 2021
@crener crener closed this Nov 6, 2021
@DJMcNab DJMcNab mentioned this pull request Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Docs An addition or correction to our documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants