lotus_engine 0.3.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
use uuid::Uuid;

/// # Struct to represent entities.
///
/// Each entity has a unique identification number generated randomly.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Entity(pub Uuid);

impl Entity {
    /// Returns a dummy Entity for specific cases.
    pub(crate) fn dummy() -> Self {
        return Self(Uuid::new_v4());
    }
}