temper 0.2.0

A simulation-first Rust game engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::ecs::entity::Entity;

// TODO tuple-style API
pub struct QueryItem<'a, T> {
    pub entity: Entity,
    pub component: &'a T,
}

pub struct QueryItem2<'a, A, B> {
    pub entity: Entity,
    pub first: &'a A,
    pub second: &'a B,
}

pub struct QueryItemMut<'a, T> {
    pub entity: Entity,
    pub component: &'a mut T,
}