sm64coopdx/docs/lua/examples/runtime-surface-examples
djoslin0 e88bd178fc
Refactor collision surface systems and add the ability to add/remove/move surfaces (#1143)
- Add `smlua_collision_add_surface`, `_move_surface`, `_delete_surface` Lua APIs
- Add `remove_static_object_collision` to fully free a SOC and its surfaces
- Split surface pools into separate static, SOC, and dynamic pools
- Replace index-based SOC tracking with unique ID counter (`sSOCIdCounter`)
- Invalidate Lua CObjects for recycled surfaces on pool clear
- Expose `SURFACE_POOL_STATIC/DYNAMIC/SOC` constants to Lua
- Add `growing_array_swap_and_pop` and `growing_array_swap_and_pop_index` to memory utils

Co-authored-by: MysterD <myster@d>
2026-05-02 14:58:46 -04:00
..
lib Refactor collision surface systems and add the ability to add/remove/move surfaces (#1143) 2026-05-02 14:58:46 -04:00
main.lua Refactor collision surface systems and add the ability to add/remove/move surfaces (#1143) 2026-05-02 14:58:46 -04:00