Crates.io | planck_game_features |
lib.rs | planck_game_features |
version | 0.1.0 |
created_at | 2025-02-08 20:57:12.502294+00 |
updated_at | 2025-02-08 20:57:12.502294+00 |
description | Integrates game_features with the planck_ecs library. |
homepage | |
repository | https://github.com/annekitsune/planck_game_features/ |
max_upload_size | |
id | 1548398 |
size | 56,706 |
Support an Open Source Developer! :hearts:
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.
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);
}