Allow add_state_scoped_event to take computed state #18623
Labels
A-States
App-level states machines
C-Feature
A new feature, making something new possible
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Uncontroversial
This work is generally agreed upon
What problem does this solve or what need does it fill?
Currently
add_state_scoped_event
takesimpl FreelyMutableState
, which prevents computed state to be used.What solution would you like?
Instead, make it take
impl States
What alternative(s) have you considered?
As for now, issue can be avoided by manually deriving
FreelyMutableState
for a type, but as far as i can see there is no reason foradd_state_scoped_event
api to take it instead of justStates
Additional context
Just changing
FreelyMutableState
toStates
inbevy_state:state_scoped_events.rs
compilesThe text was updated successfully, but these errors were encountered: