Skip to content

Commit

Permalink
Adding a mod in world generation that contains reexports of all of th…
Browse files Browse the repository at this point in the history
…e generated archetype types, handy for control in blob imports
  • Loading branch information
recatek committed Jan 15, 2025
1 parent 3bd9154 commit 41a38a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions macros/src/generate/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ pub fn generate_world(world_data: &DataWorld, raw_input: &str) -> TokenStream {
#[doc(hidden)]
pub use #ecs_world_sealed::{#ArchetypeSelectInternalWorld};

/// Convenience mod for accessing only archetypes in exports (for blob exports, etc.)
pub mod archetypes {
#(pub use super::#Archetype;)*
}

mod #ecs_world_sealed {
use super::*;

Expand Down

0 comments on commit 41a38a5

Please sign in to comment.