Skip to content

Remove references to AppBuilder in 0.6 #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/learn/book/getting-started/ecs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn main() {

Note the `hello_world` function call. This is a "trait extension method" that converts the `hello_world` function into the {{rust_type(type="trait" crate="bevy_ecs" mod="system" no_mod=true name="System")}} type.

The {{rust_type(type="struct" crate="bevy_app", name="AppBuilder" method="add_system" no_struct=true)}} function adds the system to your App's {{rust_type(type="struct", crate="bevy_ecs", mod="schedule" no_mod=true name="Schedule")}}, but we'll cover that more later.
The {{rust_type(type="struct" crate="bevy_app", name="App" method="add_system" no_struct=true)}} function adds the system to your App's {{rust_type(type="struct", crate="bevy_ecs", mod="schedule" no_mod=true name="Schedule")}}, but we'll cover that more later.

Now run your App again using `cargo run`. You should see `hello world!` printed once in your terminal.

Expand Down
4 changes: 2 additions & 2 deletions content/learn/book/getting-started/plugins/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ For better organization, let's move all of our "hello" logic to a plugin. To cre
pub struct HelloPlugin;

impl Plugin for HelloPlugin {
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
// add things to your app here
}
}
Expand All @@ -79,7 +79,7 @@ Now all that's left is to move our systems into `HelloPlugin`, which is just a m

```rs
impl Plugin for HelloPlugin {
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
app.add_startup_system(add_people)
.add_system(hello_world)
.add_system(greet_people);
Expand Down
2 changes: 1 addition & 1 deletion content/learn/book/getting-started/resources/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn greet_people(
Now all that's left is adding a `GreetTimer` Resource to our `HelloPlugin`:
```rs
impl Plugin for HelloPlugin {
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
// the reason we call from_seconds with the true flag is to make the timer repeat itself
app.insert_resource(GreetTimer(Timer::from_seconds(2.0, true)))
.add_startup_system(add_people)
Expand Down