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
48
49
50
51
//! # 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;
/// Helper functions for the camera.
pub mod camera;
/// 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 packages and to the other side of the network boundary.
pub mod message;
/// Player-specific functionality.
pub mod player;

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

/// Animation functions
pub mod animation;

/// Package-related functionality.
pub mod package;

/// Internal implementation details.
mod internal;

pub use ambient_api_macros::main;

use internal::generated::ambient_core;
pub use internal::generated::ambient_core as core;

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