]> code.bitgloo.com Git - clyne/entityx.git/commit
Make Receiver inheritance public instead of implicitly private
authorNodmgatall <Nodmgatall@users.noreply.github.com>
Sat, 13 Jun 2015 19:51:38 +0000 (21:51 +0200)
committerNodmgatall <Nodmgatall@users.noreply.github.com>
Sat, 13 Jun 2015 19:51:38 +0000 (21:51 +0200)
commit2e5e01d6d5e9f7c74ed7449e843736e08077b092
tree7fac77f7e1518ec12270fbb725e84c842bf5dffd
parente5cf985e03c2741cfdeb0c504cc1b7b0a631d151
Make Receiver inheritance public instead of implicitly private

Otherwise you get an error when trying to run the example.

/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/entityx/entityx/Event.h: In instantiation of ‘void entityx::EventManager::subscribe(Receiver&) [with E = PlayerInstrucionEvent; Receiver = MovementSystem]’:
/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/src/system_movement.hpp:17:58:   required from here
/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/entityx/entityx/Event.h:130:26: error: ‘entityx::BaseReceiver’ is an inaccessible base of ‘MovementSystem’
     BaseReceiver &base = receiver;
README.md