Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional spawning and SchematicContext #34

Merged
merged 3 commits into from
Apr 30, 2023
Merged

Optional spawning and SchematicContext #34

merged 3 commits into from
Apr 30, 2023

Conversation

MrGVSV
Copy link
Owner

@MrGVSV MrGVSV commented Apr 30, 2023

Added

  • Added Prototypical::requires_entity method to signal that an entity does not need to be spawned for a prototype
    • Represented by the entity field in the prototype format
  • Added SchematicContext to contain contextual Schematic-related data

Changed

  • Changed signatures of Schematic::apply, Schematic::remove, FromSchematicInput::from_input (and all corresponding types)
    • Replaced &mut EntityMut, &EntityTree with &mut SchematicContext

@MrGVSV MrGVSV force-pushed the schematic-context branch from df629bd to 5c84ecc Compare April 30, 2023 07:53
@MrGVSV MrGVSV merged commit 658f42a into main Apr 30, 2023
@MrGVSV MrGVSV deleted the schematic-context branch April 30, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant