14#define MAX_ABILITY_PER_GEAR 4
33 char local_key[MAX_NAME_LENGTH];
35 gear_identifier_t gear_identifier;
40 ability_t* abilities[MAX_ABILITY_PER_GEAR];
Exposes functions for working with abilities.
Defines common macros, types, and global variables for color schemes and utilities.
void free_gear_table(memory_pool_t *memory_pool, gear_table_t *table)
Frees the memory allocated for a gear table.
gear_t * init_gear(memory_pool_t *memory_pool, const char *name, gear_identifier_t gear_identifier, gear_slot_t slot, stats_t stats, defenses_t defenses, ability_table_t *ability_table, ability_names_t *abilities, int num_abilities)
Initializes a gear object.
gear_table_t * init_gear_table(memory_pool_t *memory_pool, const db_connection_t *db_connection, ability_table_t *ability_table)
Initializes a gear table.
const char * gear_slot_to_string(gear_slot_t slot)
Converts a gear slot enumeration value to its string representation.
Defines a gear identifier struct.
Exposes functions for working with stats.
This struct is used for the database connection in SQLite.