[−][src]Function rust_action_heroes::system::movement_solver::core_movement_event
fn core_movement_event(
name: &Name,
delta: &Position,
movables: &ReadStorage<Movable>,
positions: &ReadStorage<Position>,
names: &ReadStorage<Named>,
holdings: &ReadStorage<Holding>,
entities: &Entities
) -> Option<(MovementEvent, bool)>
Generates a MovementEvent for the entity we're moving. Moving Left/Right produces the entity for "Prince horizontival the first" (veritcal), Up/Down -> "Duke vert the pure" (horizontal).
Once we have that entity, we create a MovementEvent for that characters using the delta given.
We also return weather that character is in a holding state.