mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix event_emitters test
This commit is contained in:
parent
8a9fdd1805
commit
7f01928aae
@ -75,7 +75,7 @@ slotmap = { version = "1.0", features = ["serde"] }
|
||||
indexmap = { version = "1.9.3", features = ["rayon"] }
|
||||
|
||||
# ECS
|
||||
specs = { workspace = true, features = ["serde", "storage-event-control"] }
|
||||
specs = { workspace = true, features = ["serde", "storage-event-control", "shred-derive"] }
|
||||
|
||||
[dev-dependencies]
|
||||
#bench
|
||||
|
@ -538,14 +538,17 @@ pub fn register_event_busses(ecs: &mut World) {
|
||||
///
|
||||
/// # Example:
|
||||
/// ```
|
||||
/// struct Foo;
|
||||
/// struct Bar;
|
||||
/// struct Baz;
|
||||
/// event_emitters!(
|
||||
/// pub struct ReadEvents[EventEmitters] {
|
||||
/// foo: Foo, bar: Bar, baz: Baz,
|
||||
/// }
|
||||
/// );
|
||||
/// mod some_mod_is_necessary_for_the_test {
|
||||
/// use veloren_common::event_emitters;
|
||||
/// pub struct Foo;
|
||||
/// pub struct Bar;
|
||||
/// pub struct Baz;
|
||||
/// event_emitters!(
|
||||
/// pub struct ReadEvents[EventEmitters] {
|
||||
/// foo: Foo, bar: Bar, baz: Baz,
|
||||
/// }
|
||||
/// );
|
||||
/// }
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! event_emitters {
|
||||
|
Loading…
Reference in New Issue
Block a user