Modules
· 2 min read
A file directly under addons/<name>/ is a module every script reaches by path, with no require. The Gamend SDK is laid out that way: one module per server feature.

Modules
addons/kit/math.rniskit::math. Its functions are called askit::math::double(2)and its constants read askit::math::LIMIT.- The constants in a
pub modblock sit one segment deeper:kit::math::colors::RED. - Saving an addon file reaches every script that calls it.
- Completion and hover walk the path, and show a function's parameters and its doc line.
- An addon may share a name with an engine module:
gamend::lobbiessits besidegamend::login. - An exported pack keeps the paths, and a project opened in the editor mounts its own addons.
The Gamend SDK
- 259 operations in 47 modules, one per server feature:
gamend::lobbies::create_lobby,gamend::users::get_current_user. - Realtime events are grouped by channel.
gamend::events::lobby::MEMBER_JOINEDis whatgamend::events::decodeanswers for a lobby'suser_joined.
let reply = task::wait(gamend::lobbies::quick_join(this.node, #{
"title": "duel", "max_users": 2,
})).await;
