Skip to content

Conversation

@MarcGuiselin
Copy link
Collaborator

@MarcGuiselin MarcGuiselin commented Jan 11, 2026

A large refactor adding support entity-commands and more. New WIT Features:

  • The entity resource, which holds and obfuscates the id. This has no constructor. It guarantees mods can only access entities they have permission to.
  • query.iter returns query-result, giving access to a getter for entity
  • New useful aliases such as bundle for serialized component lists
  • Implement command.spawn-empty
  • Implement command.entity
  • command.spawn returns entity-commands
  • Implement entity-commands resource
    • id returns an entity
    • insert a bundle
    • remove a bundle
    • despawn
    • try-despawn
  • The app constructor has been removed. Instead, the setup function receives an app as a parameter. Now Mod authors have no way to construct and access Mod outside the setup function.

The hosts directory in particular received big refactors to make code clearer, break down monolithic functions and enable more code reuse.

Depends on #33

Base automatically changed from unload-behaviour to bevy-0.18 January 17, 2026 14:32
@MarcGuiselin MarcGuiselin changed the base branch from bevy-0.18 to main January 17, 2026 16:34
@MarcGuiselin MarcGuiselin force-pushed the entity-commands-and-more branch from de13d18 to d5a53b1 Compare January 17, 2026 16:54
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.

3 participants