mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-20 06:52:36 +00:00
Document object_list_processor.h (69.67%)
This commit is contained in:
parent
c76ded1c52
commit
5aa3a31003
3 changed files with 5 additions and 0 deletions
|
|
@ -8368,6 +8368,7 @@ end
|
||||||
|
|
||||||
--- @param obj Object
|
--- @param obj Object
|
||||||
--- @param bits integer
|
--- @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)
|
function set_object_respawn_info_bits(obj, bits)
|
||||||
-- ...
|
-- ...
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -4571,6 +4571,9 @@
|
||||||
|
|
||||||
## [set_object_respawn_info_bits](#set_object_respawn_info_bits)
|
## [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
|
### Lua Example
|
||||||
`set_object_respawn_info_bits(obj, bits)`
|
`set_object_respawn_info_bits(obj, bits)`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@ extern s16 gMarioOnMerryGoRound;
|
||||||
|
|
||||||
|
|
||||||
void bhv_mario_update(void);
|
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 set_object_respawn_info_bits(struct Object *obj, u8 bits);
|
||||||
void unload_objects_from_area(UNUSED s32 unused, s32 areaIndex);
|
void unload_objects_from_area(UNUSED s32 unused, s32 areaIndex);
|
||||||
void spawn_objects_from_info(UNUSED s32 unused, struct SpawnInfo *spawnInfo);
|
void spawn_objects_from_info(UNUSED s32 unused, struct SpawnInfo *spawnInfo);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue