Document object_list_processor.h (69.67%)

This commit is contained in:
Agent X 2024-12-22 21:58:06 -05:00
parent c76ded1c52
commit 5aa3a31003
3 changed files with 5 additions and 0 deletions

View file

@ -8368,6 +8368,7 @@ end
--- @param obj Object
--- @param bits integer
--- Runs an OR operator on the `obj`'s respawn info with `bits` << 8. If `bits` is 0xFF, this prevents the object from respawning after leaving and re-entering the area
function set_object_respawn_info_bits(obj, bits)
-- ...
end

View file

@ -4571,6 +4571,9 @@
## [set_object_respawn_info_bits](#set_object_respawn_info_bits)
### Description
Runs an OR operator on the `obj`'s respawn info with `bits` << 8. If `bits` is 0xFF, this prevents the object from respawning after leaving and re-entering the area
### Lua Example
`set_object_respawn_info_bits(obj, bits)`

View file

@ -118,6 +118,7 @@ extern s16 gMarioOnMerryGoRound;
void bhv_mario_update(void);
/* |description|Runs an OR operator on the `obj`'s respawn info with `bits` << 8. If `bits` is 0xFF, this prevents the object from respawning after leaving and re-entering the area|descriptionEnd| */
void set_object_respawn_info_bits(struct Object *obj, u8 bits);
void unload_objects_from_area(UNUSED s32 unused, s32 areaIndex);
void spawn_objects_from_info(UNUSED s32 unused, struct SpawnInfo *spawnInfo);