dragonfly_plugin/event/
mod.rs

1//! Core event types and helpers for the Rust plugin SDK.
2//!
3//! Most plugin authors will work with:
4//! - [`EventContext`], which wraps each incoming event and lets you cancel
5//!   or mutate it before the host processes it.
6//! - [`EventHandler`], a trait with an async method per event type. You
7//!   typically implement this inside an `#[event_handler]` block.
8//!
9//! The concrete event structs (`ChatEvent`, `PlayerJoinEvent`, …) live in
10//! [`crate::types`], generated from the protobuf definitions.
11
12pub mod context;
13pub mod handler;
14pub mod mutations;
15
16pub use context::*;
17pub use handler::*;