DungeonCrawl
|
Declares functions to load and free ability definitions from the game database. More...
Go to the source code of this file.
Data Structures | |
struct | ability_init_t |
To get the ability table from the database, we need to define a struct This struct is for the initialization of the ability table The values of the struct corresponds to the init_ability() method in. More... |
Typedefs | |
typedef struct ability_init_t | ability_init_t |
To get the ability table from the database, we need to define a struct This struct is for the initialization of the ability table The values of the struct corresponds to the init_ability() method in. |
Functions | |
ability_init_t * | get_ability_table_from_db (const db_connection_t *db_connection) |
Get the ability table from the database. | |
void | free_ability_table_from_db (ability_init_t *ability_init_table) |
Clean up the ability table Call this function to free the memory allocated for the ability table. |
Declares functions to load and free ability definitions from the game database.
Definition in file ability_database.h.
typedef struct ability_init_t ability_init_t |
To get the ability table from the database, we need to define a struct This struct is for the initialization of the ability table The values of the struct corresponds to the init_ability() method in.
void free_ability_table_from_db | ( | ability_init_t * | ability_init_table | ) |
Clean up the ability table Call this function to free the memory allocated for the ability table.
Definition at line 64 of file ability_database.c.
ability_init_t * get_ability_table_from_db | ( | const db_connection_t * | db_connection | ) |
Get the ability table from the database.
db_connection | Pointer to the database connection |
Definition at line 13 of file ability_database.c.