Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
spawn_object.h
Go to the documentation of this file.
1 #ifndef _SPAWN_OBJECT_H
2 #define _SPAWN_OBJECT_H
3 
4 struct ObjectNode;
5 struct Object;
6 
7 void init_free_object_list(void);
8 void clear_object_lists(struct ObjectNode *objLists);
9 void unload_object(struct Object *obj);
11 void mark_obj_for_deletion(struct Object *obj);
12 
13 #endif /* _SPAWN_OBJECT_H */
struct Object * create_object(u32 *behScript)
Spawn an object at the origin with the behavior script at virtual address behScript.
Definition: spawn_object.c:310
Definition: types.h:115
Definition: types.h:122
void init_free_object_list(void)
Add every object in the pool to the free object list.
Definition: spawn_object.c:133
u32 * behScript
Definition: types.h:151
void clear_object_lists(struct ObjectNode *objLists)
Clear each object list, without adding the objects back to the free list.
Definition: spawn_object.c:154
void mark_obj_for_deletion(struct Object *obj)
Mark an object to be unloaded at the end of the frame.
Definition: spawn_object.c:355
void unload_object(struct Object *obj)
Free the given object.
Definition: spawn_object.c:189
unsigned int u32
Definition: ultratypes.h:16