Update README

This commit is contained in:
Dawid Drozd 2017-08-06 18:16:41 +02:00
parent 910f9816e8
commit dc12c1c532
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ EventBus was created because I want something easy to use and faster than [CCNot
from [cocos2d-x](https://github.com/cocos2d/cocos2d-x) library. Of course C++11 support was mandatory.
EventBus is:
EventBus main goals:
- Fast
- Easy to use
- Strongly typed
@ -63,8 +63,8 @@ bus.listen(token, event, [](int value) // another listener
bus.unlistenAll(token);//Now those two lambdas will be removed from listeners
```
If you don't want handle manually with `token` you can use `EventCollector` class.
It is useful when we want to have multiple listen in one class. So above example could look like this:
If you don't want to handle manually with `token` you can use `EventCollector` class.
It is useful when we want to have multiple listeners in one class. So above example could look like this:
```cpp
Dexode::EventBus bus;

View File

@ -28,7 +28,7 @@ So below all numbers are in release.
This library as you can read in main README.md was inspired by [CCNotificationCenter](https://github.com/cocos2d/cocos2d-x/blob/v2/cocos2dx/support/CCNotificationCenter.h) from cocos2d-x game engine.
So I want to present comparision of performance of this two. Of course this is only showcase.
I don't want to add submodule of cocos2d-x so simply I run it only and present results. Cocos2d-x was also build as release. If you want to repeat it here are steps I followed:
I don't want to add submodule of cocos2d-x so simply I run it only and present results. Cocos2d-x was also build as release. If you want to repeat it, here are steps I followed:
```commandline
cd performance # From root of this project
git clone -b v2 https://github.com/cocos2d/cocos2d-x.git #this can take some time :/ it need to download ~900 MB