naia-bevy-shared 0.12.0

Library to faciliate naia & Bevy interop, functionality shared by client & server versions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Default)]
pub struct Flag {
    set: bool,
}

impl Flag {
    pub fn set(&mut self) {
        self.set = true;
    }

    pub fn reset(&mut self) {
        self.set = false;
    }

    pub fn is_set(&self) -> bool {
        self.set
    }
}