|
Isle
|
#include "modeldb.h"
Go to the source code of this file.
Functions | |
| MxResult | ReadModelDbWorlds (FILE *p_file, ModelDbWorld *&p_worlds, MxS32 &p_numWorlds) |
| [AI] Reads the collection of worlds (ModelDbWorld) from a model database file. More... | |
| void | FreeModelDbWorlds (ModelDbWorld *&p_worlds, MxS32 p_numWorlds) |
| [AI] Frees all resources related to ModelDbWorlds previously allocated by ReadModelDbWorlds. More... | |
| void FreeModelDbWorlds | ( | ModelDbWorld *& | p_worlds, |
| MxS32 | p_numWorlds | ||
| ) |
[AI] Frees all resources related to ModelDbWorlds previously allocated by ReadModelDbWorlds.
[AI] Deallocates all world names, part lists/parts, model presenter/model names, and the worlds array itself.
| p_worlds | Reference to worlds array pointer, which is set to NULL after deletion. [AI] |
| p_numWorlds | Number of worlds in the array, needed for cleanup. [AI] |
Definition at line 149 of file modeldb.cpp.
| MxResult ReadModelDbWorlds | ( | FILE * | p_file, |
| ModelDbWorld *& | p_worlds, | ||
| MxS32 & | p_numWorlds | ||
| ) |
[AI] Reads the collection of worlds (ModelDbWorld) from a model database file.
[AI] Allocates and loads the specified number of worlds, each containing their names, part lists, and models. Populates p_worlds and p_numWorlds accordingly. The caller is responsible for freeing with FreeModelDbWorlds.
| p_file | The file pointer to read from. [AI] |
| p_worlds | Reference to pointer where the array of worlds will be stored. [AI] |
| p_numWorlds | Reference to int to store the number of worlds read. [AI] |
Definition at line 90 of file modeldb.cpp.