From 7cd23c10d5de2ea1c0603d1e55dfc9ee004ddd9b Mon Sep 17 00:00:00 2001 From: Seldom <38388947+Seldom-SE@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:57:33 -0700 Subject: [PATCH] Bevy 0.13, `on_event` fix, trigger combinator fix --- Cargo.toml | 20 ++++++++--------- examples/chase.rs | 6 ++--- examples/done.rs | 5 ++++- examples/input.rs | 8 +++---- src/trigger.rs | 52 ++++++++++++++++++++++++++++++++++++++++---- src/trigger/input.rs | 24 ++++++++++---------- 6 files changed, 81 insertions(+), 34 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fbce0ff..1793843 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,30 +2,30 @@ name = "seldom_state" version = "0.9.0" edition = "2021" -categories = [ "game-development" ] +categories = ["game-development"] description = "Component-based state machine plugin for Bevy. Useful for AI, player state, and other entities that occupy various states." -exclude = [ "assets/" ] -keywords = [ "gamedev", "bevy", "ai", "state-machine" ] +exclude = ["assets/"] +keywords = ["gamedev", "bevy", "ai", "state-machine"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/Seldom-SE/seldom_state" [features] -leafwing_input = [ "dep:leafwing-input-manager" ] +leafwing_input = ["dep:leafwing-input-manager"] [dependencies] -bevy = { version = "0.12.0", default-features = false } +bevy = { version = "0.13.0", default-features = false } either = "1.9" -leafwing-input-manager = { version = "0.11.1", default-features = false, optional = true } -seldom_fn_plugin = "0.5.0" +leafwing-input-manager = { version = "0.13.0", default-features = false, optional = true } +seldom_fn_plugin = "0.6.0" [dev-dependencies] -bevy = "0.12.0" -leafwing-input-manager = "0.11.1" +bevy = "0.13.0" +leafwing-input-manager = "0.13.0" [[example]] name = "input" -required-features = [ "leafwing_input" ] +required-features = ["leafwing_input"] [package.metadata.docs.rs] all-features = true diff --git a/examples/chase.rs b/examples/chase.rs index a7fe3e4..773e11f 100644 --- a/examples/chase.rs +++ b/examples/chase.rs @@ -151,12 +151,12 @@ const PLAYER_SPEED: f32 = 200.; fn move_player( mut players: Query<&mut Transform, With>, - keys: Res>, + keys: Res>, time: Res