Thank you very much for helping! Unfortunately, I still do not get it working.
I still think the tutorial/book is kinda wrong in that part because I can get Pong running by basically copy-paste the code, while with this Event Channel paragraph it just doesn’t seem to work out of the box.
If I implement
SystemDesc instead of just deriving it, things are getting even more complex to me that I am both a newbie to Rust and to Amethyst. In your example,
MySystem::new needs a
ReaderId to be passed on, I guess the idea is to give it through the build method, but my understanding is that you first call new() normally and then eventually other methods, so in the
main() function I still have no clue how to build
MySystem and pass it to the
I learnt that the creation of systems can be deferred, that I think is where the build() method comes into play. But I still need to create it first with
new() I guess, and maybe
ReaderId needs to be
Option<ReaderId> and until
build() is called is None… but I am not sure.
Again thanks for helping, looking forward to any answer/hint about it