Skip to content

Commit

Permalink
Make the innner field of ActionsData pub
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Nov 1, 2024
1 parent 43e94f1 commit 9bb997b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/input_context/input_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::action_value::{ActionValue, ActionValueDim};

/// Map for actions to their [`ActionData`].
#[derive(Default, Deref, DerefMut)]
pub struct ActionsData(HashMap<TypeId, ActionData>);
pub struct ActionsData(pub HashMap<TypeId, ActionData>);

impl ActionsData {
/// Returns associated state for action `A`.
Expand All @@ -23,12 +23,6 @@ impl ActionsData {
}
}

impl From<HashMap<TypeId, ActionData>> for ActionsData {
fn from(value: HashMap<TypeId, ActionData>) -> Self {
Self(value)
}
}

/// Tracker for action state.
#[derive(Clone, Copy)]
pub struct ActionData {
Expand Down

0 comments on commit 9bb997b

Please sign in to comment.