Skip to main content

Crate suon_macros

Crate suon_macros 

Source
Expand description

Procedural macros shared across the Suon workspace.

§Examples

use suon_macros::Table;

#[derive(Table)]
struct Inventory {
    capacity: usize,
}

Derive Macros§

LuaComponent
Derives suon_lua::LuaComponent for a Bevy component that implements serde::Serialize and serde::de::DeserializeOwned.
LuaHook
Derives suon_lua::Hook for a serializable hook payload.
Table
Procedural macro to automatically generate code for the Table trait.