diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2023-02-26 15:07:52 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-26 15:07:52 -0600 |
| commit | cbc6af81fbdee71f4c1c7d62e1b91f8b17ad23bd (patch) | |
| tree | eb9c19c4b5e3489a8ff1fd304c49d051f18c35d9 /azalea-ecs/src | |
| parent | c1588ef66e844c067112ea880a54b4de9ec5a062 (diff) | |
| download | azalea-drasl-cbc6af81fbdee71f4c1c7d62e1b91f8b17ad23bd.tar.xz | |
Add PacketEvent (#75)
* add PacketEvent
* docs and fixes
* Event::Packet works
Diffstat (limited to 'azalea-ecs/src')
| -rw-r--r-- | azalea-ecs/src/lib.rs | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/azalea-ecs/src/lib.rs b/azalea-ecs/src/lib.rs index 571bd741..bc374e45 100644 --- a/azalea-ecs/src/lib.rs +++ b/azalea-ecs/src/lib.rs @@ -29,14 +29,14 @@ pub mod component { // we do this because re-exporting Component would re-export the macro as well, // which is bad (since we have our own Component macro) // instead, we have to do this so Component is a trait alias and the original - // impl-able trait is still available as BevyComponent + // impl-able trait is still available as _BevyComponent pub trait Component = bevy_ecs::component::Component; - pub use bevy_ecs::component::Component as BevyComponent; + pub use bevy_ecs::component::Component as _BevyComponent; } pub mod bundle { pub use azalea_ecs_macros::Bundle; pub trait Bundle = bevy_ecs::bundle::Bundle; - pub use bevy_ecs::bundle::Bundle as BevyBundle; + pub use bevy_ecs::bundle::Bundle as _BevyBundle; } pub mod system { pub use azalea_ecs_macros::Resource; @@ -44,10 +44,19 @@ pub mod system { Command, Commands, EntityCommands, Query, Res, ResMut, SystemState, }; pub trait Resource = bevy_ecs::system::Resource; - pub use bevy_ecs::system::Resource as BevyResource; + pub use bevy_ecs::system::Resource as _BevyResource; +} +pub mod schedule { + pub use azalea_ecs_macros::StageLabel; + pub use bevy_ecs::schedule::{ + IntoRunCriteria, IntoSystemDescriptor, ReportExecutionOrderAmbiguities, Schedule, Stage, + SystemSet, SystemStage, + }; + pub trait StageLabel = bevy_ecs::schedule::StageLabel; + pub use bevy_ecs::schedule::StageLabel as _BevyStageLabel; } pub use bevy_app as app; -pub use bevy_ecs::{entity, event, ptr, query, schedule, storage}; +pub use bevy_ecs::{entity, event, ptr, query, storage}; use app::{App, CoreStage, Plugin}; use bevy_ecs::schedule::*; |
