planck_game_features

Crates.ioplanck_game_features
lib.rsplanck_game_features
version0.1.0
created_at2025-02-08 20:57:12.502294+00
updated_at2025-02-08 20:57:12.502294+00
descriptionIntegrates game_features with the planck_ecs library.
homepage
repositoryhttps://github.com/annekitsune/planck_game_features/
max_upload_size
id1548398
size56,706
Anne Kitsune (AnneKitsune)

documentation

README

Support an Open Source Developer! :hearts:

Become a patron

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
Commit count: 9

cargo fmt