Crates.io | magma_app |
lib.rs | magma_app |
version | 0.2.0-alpha.4 |
created_at | 2023-12-01 13:24:33.883758+00 |
updated_at | 2025-08-21 18:36:35.048026+00 |
description | Part of the Magma-API, which is the API of the Magma3D game engine. |
homepage | https://dynamicgoose.github.io/magma3d-engine/ |
repository | https://codeberg.org/DynamicGoose/magma-api |
max_upload_size | |
id | 1055092 |
size | 20,043 |
This crate expands the capabilities of magma_ecs and forms the base of the magma_api.
magma_ecs::World
and adds more functionality.update
and run
method with the ability to specify a custom runner.This crate can be used standalone, but it is recommended to use it as part of the magma_api.
Add this to your Cargo.toml
:
[dependencies]
magma_app = "0.2.0-alpha.4"
Entity: An entity is just an index into the component storage.
Component: A component holds some type of data. Entities can have components assigned to them.
System: A system is a piece of code (usually a function), that reads and modifies the data.
Another way to think about this would be Identifier-Data-Logic.
use magma_app::App;
fn main() {
let mut app = App::new();
// run the app
app.run();
}
currently no features
This is not production ready.