minigene 0.7.0

A minimalist terminal game engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::*;

/// Moves all cameras in the world by `distance` towards `direction`.
/// Consumed by `move_camera_system`.
#[derive(Hash, PartialEq, Eq, Clone, Copy, Debug)]
pub struct MoveCameraEvent {
    /// The direction in which to move the camera.
    pub direction: Direction,
    /// The distance that the camera should be moved.
    pub distance: i32,
}