oxygengine_core/
lib.rs

1#[macro_use]
2extern crate lazy_static;
3#[macro_use]
4extern crate pest_derive;
5
6#[macro_use]
7pub mod log;
8pub mod app;
9pub mod assets;
10pub mod error;
11pub mod fetch;
12pub mod prefab;
13pub mod state;
14#[macro_use]
15pub mod localization;
16pub mod ecs;
17pub mod jobs;
18pub mod scripting;
19pub mod storage;
20pub mod utils;
21
22#[cfg(test)]
23mod tests;
24
25pub mod id {
26    pub use typid::*;
27}
28
29#[allow(ambiguous_glob_reexports)]
30pub mod prelude {
31    pub use crate::{
32        app::*,
33        assets::{
34            asset::*,
35            asset_pack_preloader::*,
36            assets_preloader::*,
37            database::*,
38            protocol::*,
39            protocols::{
40                binary::*, json::*, localization::*, meta::*, pack::*, prefab::*, text::*, *,
41            },
42            system::*,
43            *,
44        },
45        ecs::{
46            commands::*,
47            components::*,
48            hierarchy::*,
49            life_cycle::*,
50            pipeline::{
51                engines::{closure::*, default::*, jobs::*, sequence::*, *},
52                *,
53            },
54            *,
55        },
56        fetch::{
57            engines::{map::*, *},
58            *,
59        },
60        id::*,
61        jobs::*,
62        localization::*,
63        log::*,
64        prefab::*,
65        scripting::*,
66        state::*,
67        storage::{
68            engines::{map::*, *},
69            *,
70        },
71        utils::*,
72        Scalar, *,
73    };
74    #[cfg(not(feature = "web"))]
75    pub use crate::{fetch::engines::fs::*, storage::engines::fs::*};
76}
77
78#[cfg(feature = "scalar64")]
79pub type Scalar = f64;
80#[cfg(not(feature = "scalar64"))]
81pub type Scalar = f32;
82
83pub use hecs::Bundle;