rj00a / evenio

An event-driven Entity Component System
MIT License
132 stars 14 forks source link

Implement non-`'static` events. #42

Closed rj00a closed 5 months ago

rj00a commented 5 months ago

Closes #41

This PR removes the 'static bound from the Event trait. World::send can now send events containing borrowed data from outside the World. However, Sender::send still requires 'static.

Additional Changes