1 unstable release
new 0.1.0 | Feb 8, 2025 |
---|
#455 in Game dev
Used in minigene
20KB
241 lines
Support an Open Source Developer! ♥️
Planck ECS Game Features
Layer 2 Crate integrating the game_features library with the Planck ECS library.
Provides systems for updating the different game_features structs. Also provides a system bundle to easily integrate into your games.
Usage
Add the following to you Cargo.toml file:
planck_game_features = "*"
Use it like so:
use planck_game_features::*;
#[derive(Eq, PartialEq, Hash, Clone, Debug)]
pub enum Stats {}
#[derive(Eq, PartialEq, Hash, Clone, Debug)]
pub enum Effectors {}
#[derive(Eq, PartialEq, Hash, Clone, Debug)]
pub enum Skills {}
#[derive(Eq, PartialEq, Hash, Clone, Debug)]
pub enum Items {}
fn main() {
let mut dispatcher = DispatcherBuilder::default();
dispatcher = GameFeaturesSystemBundle::<Stats, Effectors, Skills, Items>::insert(dispatcher);
}
Maintainer Information
- Maintainer: Jojolepro
- Contact: jojolepro [at] jojolepro [dot] com
- Website: jojolepro.com
- Patreon: patreon
Dependencies
~5MB
~74K SLoC