cloudiful-bevy-settings 0.1.0

Reusable Bevy settings runtime for app-defined actions, field keys, and localization context.
Documentation
1
2
3
4
5
6
7
8
pub trait SettingActionHandler<Action: Copy> {
    fn can_apply(&self, action: Action) -> bool;
    fn apply(&mut self, action: Action);
}

pub trait RequestedSettingAction<Action> {
    fn action(&self) -> Action;
}