Crate ambient_api_core
source ·Expand description
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.
Ambient has first-class support for Rust. Please report any issues you encounter to the repository.
Modules
- Retrieval of assets and where to find them.
- Auto-generated component definitions. These come from
ambient.tomlin the root of the project. - Auto-generated concept definitions. Concepts are collections of components that describe some form of gameplay concept.
- ECS-related functionality not directly related to entities.
- Manipulation, creation, removal, search and more for entities.
- Global functions and types for your convenience.
- Messaging to other modules and to the other side of the networking.
- Auto-generated message definitions. Messages are used to communicate with the runtime, the other side of the network, and with other modules.
- Player-specific functionality.
- Helpful imports that almost all Ambient projects will use.
Attribute Macros
- Makes your
main()function accessible to the WASM host, and generatescomponentsandconceptmodules for your project.