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

  • Animation functions
  • Retrieval of assets and where to find them.
  • Helper functions for the camera.
  • 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 packages and to the other side of the network boundary.
  • Package-related functionality.
  • Player-specific functionality.
  • Helpful imports that almost all Ambient packages will use.

Attribute Macros

  • Makes your main() function accessible to the WASM host, and generates a packages module that contain all packages visible to your package, including itself.