Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions
spawn_object.h File Reference

Go to the source code of this file.

Functions

void init_free_object_list (void)
 Add every object in the pool to the free object list. More...
 
void clear_object_lists (struct ObjectNode *objLists)
 Clear each object list, without adding the objects back to the free list. More...
 
void unload_object (struct Object *obj)
 Free the given object. More...
 
struct Objectcreate_object (u32 *behScript)
 Spawn an object at the origin with the behavior script at virtual address behScript. More...
 
void mark_obj_for_deletion (struct Object *obj)
 Mark an object to be unloaded at the end of the frame. More...
 

Function Documentation

◆ clear_object_lists()

void clear_object_lists ( struct ObjectNode objLists)

Clear each object list, without adding the objects back to the free list.

◆ create_object()

struct Object* create_object ( u32 behScript)

Spawn an object at the origin with the behavior script at virtual address behScript.

They intended to snap certain objects to the floor when they spawn.

◆ init_free_object_list()

void init_free_object_list ( void  )

Add every object in the pool to the free object list.

◆ mark_obj_for_deletion()

void mark_obj_for_deletion ( struct Object obj)

Mark an object to be unloaded at the end of the frame.

Same issue as mark_object_for_deletion

◆ unload_object()

void unload_object ( struct Object obj)

Free the given object.