bevy-events

Implement Bevy event patterns with messages, events, and observers.

125|10|Updated Nov 22, 2022
One-click install
npx skills add https://github.com/nolantait/bevy-starter --skill bevy-events
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bevy-events
Source: https://github.com/nolantait/bevy-starter/tree/main/.agents/skills/bevy-events
Command: npx skills add https://github.com/nolantait/bevy-starter --skill bevy-events

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reference and guidance for using Bevy's event system, including Message, MessageReader, MessageWriter, Event, EntityEvent, and propagation, to build clear, maintainable inter-system communication.

Core Features & Use Cases

  • Understands the distinction between Messages and Events for ECS-driven architectures.
  • Details how to define, register, write, and read Message/MessageReader/MessageWriter.
  • Covers Event/EntityEvent definitions, observers, triggers, and propagation through component hierarchies.
  • Provides practical usage scenarios for coordinating gameplay systems and reactive behavior.

Quick Start

Follow the guide to implement message-based communication and event-driven observers in your Bevy game.

Frequently Asked Questions about bevy-events

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate gameplay systems in Bevy using events and messages?

Bevy events and messages coordinate gameplay systems by defining, registering, writing, and reading inter-system communication through Message, MessageReader, MessageWriter, and observer-driven workflows.

What is the difference between Messages and Events in Bevy ECS?

Messages and Events in Bevy ECS differ in their architectural roles, with Messages handling buffered inter-system communication via MessageReader/MessageWriter and Events driving reactive observer workflows through triggers and component hierarchy propagation.

How do I trigger an EntityEvent and use observers in Bevy?

To trigger an EntityEvent in Bevy, define the event, register it, and use observers to listen for triggers, allowing reactive behavior and propagation through component hierarchies for targeted entity interactions.

Does this Bevy event reference apply to Bevy ECS 0.19 projects?

Yes, this Bevy event reference applies to Bevy ECS 0.19 projects, detailing reliable inter-system communication, event propagation, and observer-driven workflows for maintainable game development.

How does event propagation work through component hierarchies in Bevy?

Event propagation in Bevy works by triggering EntityEvents that traverse component hierarchies, allowing observers to react to changes and manage reactive behavior across parent and child entities.

What are Bevy's built-in lifecycle events and how do I observe them?

Bevy's built-in lifecycle events are observed by registering observers to listen for specific entity or app-level triggers, enabling automated reactive workflows when those predefined lifecycle conditions occur.