32 gear_identifier_t gear_identifier;
36 ability_names_t ability_names[MAX_ABILITY_PER_GEAR];
Exposes functions for working with abilities.
Exposes functions for working with the database.
Exposes functions for working with gear.
gear_init_t * init_gear_table_from_db(const db_connection_t *db_connection)
Get the gear table from the database.
potion_init_t * init_potion_table_from_db(const db_connection_t *db_connection)
Get the potion table from the database.
void free_gear_table_from_db(gear_init_t *gear_init_table, const db_connection_t *db_connection)
Clean up the gear table Call this function to free the memory allocated for the gear table.
int count_potions_in_db(const db_connection_t *db_connection)
Count the number of potions in the database.
int count_gear_in_db(const db_connection_t *db_connection)
Count the number of gears in the database.
void free_potion_table_from_db(potion_init_t *potion_init_table, const db_connection_t *db_connection)
Clean up the potion table Call this function to free the memory allocated for the potion table.
Exposes functions for working with potions.
This struct is used for the database connection in SQLite.
To get gear table from the database, we need to define a struct This struct is for the initialization...
To get potion table from the database, we need to define a struct This struct is for the initializati...