Document pass on WaterBox code (#2695)

* Document pass on WaterBox code

* implement suggestions, missing comment

---------

Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
This commit is contained in:
mzxrules
2026-08-31 12:46:13 -04:00
committed by GitHub
parent 6bc695cc14
commit 176a0bc02a
17 changed files with 136 additions and 109 deletions
@@ -447,13 +447,13 @@ class CollisionWaterBoxesResource(CDataResource):
bgCamIndex = (v >> 0) & 0xFF
lightIndex = (v >> 8) & 0x1F
room = (v >> 13) & 0x3F
setFlag19 = (v >> 19) & 1
isDisabled = (v >> 19) & 1
return (
"WATERBOX_PROPERTIES("
f"/* bgCamIndex */ {bgCamIndex}, "
f"/* lightIndex */ {lightIndex}, "
f"/* room */ {room}, "
f"/* setFlag19 */ {'true' if setFlag19 else 'false'}"
f"/* isDisabled */ {'true' if isDisabled else 'false'}"
")"
)