martindevans / Myre

An XNA game engine
http://martindevans.me/tags/#myre-ref
MIT License
12 stars 3 forks source link

Emit Animation Events #9

Open martindevans opened 9 years ago

martindevans commented 9 years ago

Support a timeline of events in animation clips, when the animation is played emit the event (via the normal Myre event system). This allows things like footstep noises to be specified in the animation XML file with the correct timestamp.

martindevans commented 9 years ago

This will require some careful thinking about how to pass this data into the event system. The events deserialized from the file will not be strongly typed (obviously).

GetEvent(Type t).Send(Object data)

martindevans commented 9 years ago

The events in the content pipeline need some type. There are two options here: