lotus_engine 0.2.3

Lotus is a game engine with the main focus of being easy-to-use and straight forward on developing 2D games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use lotus_proc_macros::Component;

/// Struct to represent an entity visibility in the world.
#[derive(Clone, Component)]
pub struct Visibility(pub bool);

impl Visibility {
    /// Creates a new visibility struct.
    pub fn new(value: bool) -> Self {
        return Self(value);
    }
}

impl Default for Visibility {
    fn default() -> Self {
        return Self(true);
    }
}