1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! A collection of structures and functions useful across the entire amethyst project.

#![warn(missing_docs)]

#[macro_use]
pub extern crate cgmath;
pub extern crate shred;
pub extern crate shrev;
pub extern crate specs;

#[macro_use]
extern crate error_chain;
extern crate fnv;
extern crate hibitset;
extern crate log;
extern crate rayon;
#[macro_use]
extern crate serde;
extern crate specs_hierarchy;

#[macro_use]
#[cfg(feature = "profiler")]
extern crate thread_profiler;

#[cfg(all(target_os = "emscripten", not(no_threading)))]
compile_error!("the cfg flag \"no_threading\" is required when building for emscripten");

pub use self::axis::{Axis2, Axis3};
pub use self::named::{Named, WithNamed};
pub use bundle::{Error, ErrorKind, Result, SystemBundle};
pub use event::EventReader;
pub use orientation::Orientation;
use std::sync::Arc;
pub use timing::*;
pub use transform::*;

mod axis;
pub mod bundle;
mod event;
pub mod frame_limiter;
mod named;
mod orientation;
pub mod timing;
pub mod transform;

/// A rayon thread pool wrapped in an `Arc`. This should be used as resource in `World`.
pub type ArcThreadPool = Arc<rayon::ThreadPool>;