Skip to content

Adds Bevy game engine snippets (v0.18 compatible)#628

Open
tazrir wants to merge 6 commits intorafamadriz:mainfrom
tazrir:feat/bevy-snippets
Open

Adds Bevy game engine snippets (v0.18 compatible)#628
tazrir wants to merge 6 commits intorafamadriz:mainfrom
tazrir:feat/bevy-snippets

Conversation

@tazrir
Copy link
Copy Markdown

@tazrir tazrir commented Apr 8, 2026

Added some snippets for initialising common constructs in current version of Bevy.

Adds top-level stuff:

  • bevy -> use prelude (useful in almost every file)
  • plugin -> function and struct plugin declaration
  • component -> component declaration
  • resource -> resource struct declaration
  • event -> event struct declaration
  • state -> state enum declaration
  • systemset -> systemset enum declaration
  • system -> plain system function
  • observer -> observer function

And system-level stuff:

  • query -> system Query<..> query argument
  • commands -> world Commands argument
  • res -> Read-only resource argument
  • resmut -> Mutable resource argument
  • eventreader -> EventReader argument
  • eventwriter -> EventWriter arugment

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