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
//! # 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.
#![deny(missing_docs)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[cfg(feature = "client")]
#[doc(hidden)]
pub mod client;
#[cfg(feature = "server")]
#[doc(hidden)]
pub mod server;

/// Retrieval of assets and where to find them.
pub mod asset;
/// ECS-related functionality not directly related to entities.
pub mod ecs;
/// Manipulation, creation, removal, search and more for entities.
pub mod entity;
/// Global functions and types for your convenience.
pub mod global;
/// Messaging to other modules and to the other side of the networking.
pub mod message;
/// Player-specific functionality.
pub mod player;

/// Helpful imports that almost all Ambient projects will use.
pub mod prelude;

/// Internal implementation details.
mod internal;

pub use ambient_api_macros::main;

pub use internal::generated::*;

#[allow(clippy::single_component_path_imports)]
use once_cell;