networkinator 0.1.2

Crate for network on bevy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bevy::prelude::{Res, ResMut};

pub mod client;
pub mod server;
pub mod shared;

#[cfg(target_arch = "wasm32")]
pub type NetResMut<'a, T> = NonSendMut<'a, T>;

#[cfg(target_arch = "wasm32")]
pub type NetRes<'a, T> = NonSend<'a, T>;

#[cfg(not(target_arch = "wasm32"))]
pub type NetResMut<'a, T> = ResMut<'a, T>;

#[cfg(not(target_arch = "wasm32"))]
pub type NetRes<'a, T> = Res<'a, T>;