Skip to content

Commit

Permalink
docs(README): update with method name change
Browse files Browse the repository at this point in the history
  • Loading branch information
giusdp committed Jan 2, 2024
1 parent 9c0e180 commit a7b7256
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The plugin adds an `AssetLoader` for these ron files, so it's as easy as:
let handle: Handle<TalkData> = asset_server.load("simple.talk.ron");
```

Then you can use `Talk::builder()` to create a `TalkBuilder`, which has the `fill_from_talk_data` method.
Then you can use `Talk::builder()` to create a `TalkBuilder`, which has the `fill_with_talk_data` method.
You can retrieve the `TalkData` from the assets collection `talks: Res<Assets<TalkData>>`.


Expand All @@ -142,7 +142,7 @@ struct TalkAsset {

fn spawn(mut commands: Commands, talks: Res<Assets<TalkData>>, talk_asset: Res<TalkAsset>) {
let talk = talks.get(&talk_asset.handle).unwrap();
let talk_builder = TalkBuilder::default().fill_from_talk_data(simple_talk);
let talk_builder = TalkBuilder::default().fill_with_talk_data(simple_talk);

// grab the talk commands
let mut talk_commands = commands.talks();
Expand All @@ -153,7 +153,6 @@ fn spawn(mut commands: Commands, talks: Res<Assets<TalkData>>, talk_asset: Res<T

Spawning that talk graph will result in this:


```mermaid
graph LR;
A[Narrator Talks] --> B[Alice,Bob Join];
Expand Down

0 comments on commit a7b7256

Please sign in to comment.