World Dispatcher
The system part of a full ECS (Entity-Component-System).
It also contains a World
structure, which holds the game data used by systems.
The Dispatcher
is used to execute systems in parallel and in an optimised
order.
Usage
Add the following to you Cargo.toml file:
world_dispatcher = "0.99.0"
Use it like so:
use *;
It is also possible to convert most functions into systems. There are four requirements for this:
- Take only & and &mut references as arguments
- Return a SystemResult
- Use all & references before all &mut references in the arguments.
- Do not use the same type twice in the arguments.
- All types in the arguments must implement
Default
. If they don't, use&/&mut Option<YourType>
instead.
use *;
;
;
;
;
Focks Team Information
Maintainer: Jojolepro
Contact: jojolepro [at] jojolepro [dot] com
Commercial license available: yes
Licence
AGPL-3.0. You can buy commercial licenses here.
See full license in LICENSE file.
Copyright (C) 2020 Jojolepro.