mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-25 18:00:48 +08:00
readme typo + process example
This commit is contained in:
parent
ed4b80d1f5
commit
62046399d4
@ -34,7 +34,7 @@ If you want to play with sample online checkout this link: [wandbox.org](https:/
|
||||
0. Store bus
|
||||
|
||||
```cpp
|
||||
// store it in controller / singleton / std::sharted_ptr whatever you want
|
||||
// store it in controller / singleton / std::shared_ptr whatever you want
|
||||
auto bus = std::make_shared<EventBus>();
|
||||
```
|
||||
|
||||
@ -78,6 +78,12 @@ event::Gold myGold{12};
|
||||
bus->postpone(myGold); // 3 way
|
||||
```
|
||||
|
||||
4. Process the events
|
||||
|
||||
```cpp
|
||||
bus->process();
|
||||
```
|
||||
|
||||
Checkout [tests](test/) or [use cases](use_case/) for more examples. Or create issue what isn't clear :)
|
||||
|
||||
# Add to your project
|
||||
|
Loading…
x
Reference in New Issue
Block a user