ndouglas / azymus

An experimental roguelike, written in Rust.
The Unlicense
6 stars 0 forks source link

Event system. #26

Open ndouglas opened 5 years ago

ndouglas commented 5 years ago

Events are tied closely to the Effect system. Observers of Events can trigger Actions and therefore further Effects.

There's a possibility for this kind of system to go haywire and cause infinite loops. I'm not sure of the best way to deal with this. It'd be nice to be able to avoid this in some way that's checkable at compile time.