Seldom-SE / seldom_state

Component-based state machine plugin for Bevy. Useful for AI, player state, and other entities that occupy different states.
Apache License 2.0
172 stars 18 forks source link

Using System for Trigger #7

Closed hyranno closed 5 months ago

hyranno commented 9 months ago

Hello. Bevy has its own mechanics to handle functions with SystemParam and corresponding SystemState. This PR aim to

The interoperability implemented as wrappers: TriggerSystemFunction and SystemFunctionTrigger. I'm not so sure this is good implement. I couldn't

Breaking Change

Trigger::trigger(&self, ...) -> Trigger::trigger(&mut self, ...)

Seldom-SE commented 9 months ago

Thanks for the pr, my life is busy right now, but I'll take a look when I'm able

Seldom-SE commented 8 months ago

I have some plans for an update (after 0.12 releases) that conceptually conflict with this, but I'll leave this open until I confirm that such plans are actually a good idea

Seldom-SE commented 5 months ago

Closing in favor of https://github.com/Seldom-SE/seldom_state/commit/dec8a587903ab5db82e8846c1bad3441742f01d6