Engine api

This commit is contained in:
2026-10-06 20:27:17 -03:00
parent d13938550d
commit 69c5c187db
27 changed files with 1026 additions and 90 deletions
+4
View File
@@ -243,3 +243,7 @@ export function eyes_in_water(
): boolean {
return is_liquid(Math.floor(body.x), Math.floor(body.y + eye_height), Math.floor(body.z));
}
// what the engine calls through, so engine access mods can hook these like methods (module exports can't be
// reassigned). see docs/modding/misc/engine.md
export const physics = { move_body, back_off_from_edge, box_is_free, in_water, eyes_in_water };