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
//! # The Ambient Rust API
//!
//! Welcome to the Ambient Rust API! This API allows you to write logic for Ambient, the multiplayer game engine, in Rust.
//!
//! The Ambient Book can be found [here](https://ambientrun.github.io/Ambient/).
//!
//! Ambient has first-class support for Rust. Please report any issues you encounter to the repository.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[cfg(feature = "client")]
pub use ambient_api_core::client::*;
#[cfg(feature = "server")]
pub use ambient_api_core::server::*;
pub use ambient_api_core::*;

pub use ambient_cb as cb;
pub use ambient_editor_derive as editor_derive;
pub use ambient_element as element;
pub use ambient_ui as ui;

pub mod animation_element;

pub mod prelude {
    pub use ambient_api_core::prelude::*;
    pub use ambient_editor_derive::ElementEditor;
    pub use ambient_ui::prelude::*;
}

/// Re-exports from other crates.
pub use anyhow;
pub use futures;
pub use glam;
pub use once_cell;
pub use rand;