Trait bevy_event_set::AddEventSet[][src]

pub trait AddEventSet {
    fn add_event_set<E: EventSet>(&mut self) -> &mut Self;
}

Trait used to add add_event_set to the Bevy app builder

Required methods

fn add_event_set<E: EventSet>(&mut self) -> &mut Self[src]

Adds an event set to the app

Example

use bevy::prelude::*;
use bevy_event_set::*;

struct MyEvent;
event_set!(MyEventSet { MyEvent });

App::build().add_event_set::<MyEventSet>();
Loading content...

Implementations on Foreign Types

impl AddEventSet for AppBuilder[src]

Loading content...

Implementors

Loading content...