pub fn new(
        states: &'a mut BTreeMap<Entity, Box<dyn State>>,
        ecm: &'a mut EntityComponentManager<Tree>,
        message_adapter: &'a MessageAdapter,
    ) -> Self {
        StatesContext {
            states,
            ecm,
            message_adapter,
        }
    }
/// Creates a new state context.
Creates a new state context.
Creates a new state context .
pub fn new(
        states: &'a mut BTreeMap<Entity, Box<dyn State>>,
        ecm: &'a mut EntityComponentManager<Tree>,
        message_adapter: &'a MessageAdapter,
    ) -> Self {
        StatesContext {
            states,
            ecm,
            message_adapter,
        }
    }
pub fn new ( states : & ' a mut BTreeMap < Entity , Box < dyn State > > , ecm : & ' a mut EntityComponentManager < Tree > , message_adapter : & ' a MessageAdapter , ) -> Self { StatesContext { states , ecm , message_adapter , } }
Creates a new state context.
Creates a new state context .
states
&'a mut BTreeMap<Entity, Box<dyn State>>
ecm
&'a mut EntityComponentManager<Tree>
message_adapter
&'a MessageAdapter