thomas 0.2.4

An ECS game engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct Dimensions2d {
    height: u64,
    width: u64,
}
impl Dimensions2d {
    pub fn new(height: u64, width: u64) -> Self {
        Dimensions2d { height, width }
    }

    pub fn height(&self) -> u64 {
        self.height
    }

    pub fn width(&self) -> u64 {
        self.width
    }
}