An experimental, status effects-as-entities system for Bevy.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update to Auto Plugin V0.10, Immediate Stats V0.5.

+18 -53
+14 -49
Cargo.lock
··· 544 544 545 545 [[package]] 546 546 name = "bevy_auto_plugin" 547 - version = "0.9.0" 547 + version = "0.10.0" 548 548 source = "registry+https://github.com/rust-lang/crates.io-index" 549 - checksum = "b00355e2dd268a7f9c7453773753edfedda475896c0b4e7b2d015aa04f4849fd" 549 + checksum = "f3c7761957a70588bf0b7c6120c97a47620dab684a622a0aa0a8c5c9161becd6" 550 550 dependencies = [ 551 551 "bevy_auto_plugin_proc_macros", 552 552 "bevy_auto_plugin_shared", ··· 556 556 557 557 [[package]] 558 558 name = "bevy_auto_plugin_proc_macros" 559 - version = "0.9.0" 559 + version = "0.10.0" 560 560 source = "registry+https://github.com/rust-lang/crates.io-index" 561 - checksum = "d85f2558b3a8f3d5e3e8df9debbff0665cad6c7c2bfde3537e7ff247fde3cd8f" 561 + checksum = "582998ec7135267343cdcfc441128b73bbc995be640e48e046e2a33f3ff5703f" 562 562 dependencies = [ 563 563 "bevy_auto_plugin_shared", 564 564 "proc-macro2", ··· 566 566 567 567 [[package]] 568 568 name = "bevy_auto_plugin_shared" 569 - version = "0.9.0" 569 + version = "0.10.0" 570 570 source = "registry+https://github.com/rust-lang/crates.io-index" 571 - checksum = "f6d825af42f08348a7c2307f50aabde362e774dd906c274556bd6b71794c8476" 571 + checksum = "999eb3756d075ac95e169f71333ac211e54e961ac55708a89731eb6134f38b7e" 572 572 dependencies = [ 573 573 "bevy_app", 574 - "darling 0.21.3", 574 + "darling", 575 575 "inventory", 576 576 "linkme", 577 577 "log", ··· 2264 2264 source = "registry+https://github.com/rust-lang/crates.io-index" 2265 2265 checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" 2266 2266 dependencies = [ 2267 - "darling_core 0.21.3", 2268 - "darling_macro 0.21.3", 2269 - ] 2270 - 2271 - [[package]] 2272 - name = "darling" 2273 - version = "0.23.0" 2274 - source = "registry+https://github.com/rust-lang/crates.io-index" 2275 - checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" 2276 - dependencies = [ 2277 - "darling_core 0.23.0", 2278 - "darling_macro 0.23.0", 2267 + "darling_core", 2268 + "darling_macro", 2279 2269 ] 2280 2270 2281 2271 [[package]] ··· 2293 2283 ] 2294 2284 2295 2285 [[package]] 2296 - name = "darling_core" 2297 - version = "0.23.0" 2298 - source = "registry+https://github.com/rust-lang/crates.io-index" 2299 - checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" 2300 - dependencies = [ 2301 - "ident_case", 2302 - "proc-macro2", 2303 - "quote", 2304 - "strsim", 2305 - "syn 2.0.111", 2306 - ] 2307 - 2308 - [[package]] 2309 2286 name = "darling_macro" 2310 2287 version = "0.21.3" 2311 2288 source = "registry+https://github.com/rust-lang/crates.io-index" 2312 2289 checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" 2313 2290 dependencies = [ 2314 - "darling_core 0.21.3", 2315 - "quote", 2316 - "syn 2.0.111", 2317 - ] 2318 - 2319 - [[package]] 2320 - name = "darling_macro" 2321 - version = "0.23.0" 2322 - source = "registry+https://github.com/rust-lang/crates.io-index" 2323 - checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" 2324 - dependencies = [ 2325 - "darling_core 0.23.0", 2291 + "darling_core", 2326 2292 "quote", 2327 2293 "syn 2.0.111", 2328 2294 ] ··· 3014 2980 3015 2981 [[package]] 3016 2982 name = "immediate_stats" 3017 - version = "0.4.0" 2983 + version = "0.5.0" 3018 2984 source = "registry+https://github.com/rust-lang/crates.io-index" 3019 - checksum = "d8619adda62694b9bf085e6134215a9439279a6cb4b305ea008f89cedf9828a6" 2985 + checksum = "d2e9bfbd15d2ae09094aa16193e6f603b5f721d9ebaa6918fa112389c44b59c4" 3020 2986 dependencies = [ 3021 2987 "bevy_app", 3022 2988 "bevy_auto_plugin", ··· 3027 2993 3028 2994 [[package]] 3029 2995 name = "immediate_stats_macros" 3030 - version = "0.4.0" 2996 + version = "0.5.0" 3031 2997 source = "registry+https://github.com/rust-lang/crates.io-index" 3032 - checksum = "cf0252f42204daee69054e2f4d8b102a99f9c1065cbc9e9826a0dfaef226aa22" 2998 + checksum = "94770b216cb1e5a378d3501e63314242e754c1b2c776fa1d9645eaec03fce0b0" 3033 2999 dependencies = [ 3034 - "darling 0.23.0", 3035 3000 "proc-macro-error", 3036 3001 "proc-macro2", 3037 3002 "quote",
+2 -2
Cargo.toml
··· 27 27 28 28 [dev-dependencies] 29 29 bevy = "0.18" 30 - bevy_auto_plugin = { version = "0.9" } 30 + bevy_auto_plugin = { version = "0.10.0" } 31 31 criterion = { version = "0.8" } 32 - immediate_stats = { version = "0.4", features = ["bevy_auto_plugin"] } 32 + immediate_stats = { version = "0.5.0", features = ["bevy_auto_plugin"] } 33 33 34 34 [lints.rust] 35 35 missing_docs = "warn"
+2 -2
examples/immediate_stats/decaying_speed_auto_plugin.rs
··· 8 8 9 9 use bevy::prelude::*; 10 10 use bevy_alchemy::*; 11 - use bevy_auto_plugin::prelude::{AutoPlugin, auto_component, auto_system}; 11 + use bevy_auto_plugin::prelude::{AutoPlugin, auto_plugin_build_hook, auto_system}; 12 12 use immediate_stats::*; 13 13 14 14 fn main() { ··· 24 24 25 25 /// Tracks an entities current movement speed. 26 26 #[derive(Component, StatContainer)] 27 - #[auto_component(plugin = DecayingSpeedPlugin)] 27 + #[auto_plugin_build_hook(plugin = DecayingSpeedPlugin, hook = ResetComponentHook)] 28 28 struct MovementSpeed(Stat); 29 29 30 30 /// Applies a speed boost, which decreases throughout its duration.