Skip to content

atl-macros

These are re-exported from atl, so they are written #[atl::class], #[atl::server(...)], #[atl::client(...)] and #[derive(atl::Message)].

Registers the impl's type as a script class under its own name (or name = "..."), so Lua can ask for it with scriptClass. methods(a, b) adds custom methods.

Registers the impl's type as the server half of split class "Name" (see ServerShapeClass). Each half may be in its own file. on(...) adds typed-message handlers, methods(...) custom methods.

Registers the impl's type as the client half of split class "Name" (see ClientShapeClass). Each half may be in its own file. on(...) adds typed-message handlers, methods(...) custom methods.

Plain structs and field-less enums as typed messages: each field is encoded in declaration order, and the schema hashes the type's name and every field's type. Enums travel as their #[repr] integer (i32 by default).