magma_app
This crate expands the capabilities of magma_ecs and forms the base of the magma_api.
Features
- An app struct, which wraps a
magma_ecs::World
and adds more functionality. - Adding custom modules (not rust modules) to an app.
- An
update
andrun
method with the ability to specify a custom runner.
Usage
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
:
[]
= "0.2.0-alpha.4"
Entity-Component-System (Magma-ECS)
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.
Example
use App;
Cargo Features
currently no features
Disclaimer
This is not production ready.