action_maps 0.3.1

A dynamic action mapping system for Bevy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Action {
    pub name: &'static str,
}

impl From<&'static str> for Action {
    fn from(name: &'static str) -> Self {
        Action { name }
    }
}

unsafe impl Send for Action {}
unsafe impl Sync for Action {}