Module event

Module event 

Source
Expand description

Core event types and helpers for the Rust plugin SDK.

Most plugin authors will work with:

  • EventContext, which wraps each incoming event and lets you cancel or mutate it before the host processes it.
  • EventHandler, a trait with an async method per event type. You typically implement this inside an #[event_handler] block.

The concrete event structs (ChatEvent, PlayerJoinEvent, …) live in crate::types, generated from the protobuf definitions.

Re-exports§

pub use context::*;
pub use handler::*;

Modules§

context
handler
This file is auto-generated by xtask. Do not edit manually.
mutations
This file is auto-generated by xtask. Do not edit manually.