siecs 0.1.2

Rust bindings for SIECS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::raw;

#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub struct Entity {
    pub(crate) id: raw::EntityId,
}

impl Entity {
    #[inline]
    pub(crate) const fn from_raw(id: raw::EntityId) -> Self {
        Self { id }
    }

    #[inline]
    pub const fn id(self) -> raw::EntityId {
        self.id
    }
}