project_files/frontlib/model/weapon.h
changeset 10017 de822cd3df3a
parent 7497 7e1d72fc03c7
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
    28  *
    28  *
    29  * For loadout, 9 means inifinite ammo.
    29  * For loadout, 9 means inifinite ammo.
    30  * For the other setting, 9 is invalid.
    30  * For the other setting, 9 is invalid.
    31  */
    31  */
    32 typedef struct {
    32 typedef struct {
    33 	char loadout[WEAPONS_COUNT+1];
    33     char loadout[WEAPONS_COUNT+1];
    34 	char crateprob[WEAPONS_COUNT+1];
    34     char crateprob[WEAPONS_COUNT+1];
    35 	char crateammo[WEAPONS_COUNT+1];
    35     char crateammo[WEAPONS_COUNT+1];
    36 	char delay[WEAPONS_COUNT+1];
    36     char delay[WEAPONS_COUNT+1];
    37 	char *name;
    37     char *name;
    38 } flib_weaponset;
    38 } flib_weaponset;
    39 
    39 
    40 typedef struct {
    40 typedef struct {
    41 	int weaponsetCount;
    41     int weaponsetCount;
    42 	flib_weaponset **weaponsets;
    42     flib_weaponset **weaponsets;
    43 } flib_weaponsetlist;
    43 } flib_weaponsetlist;
    44 
    44 
    45 /**
    45 /**
    46  * Returns a new weapon set, or NULL on error.
    46  * Returns a new weapon set, or NULL on error.
    47  * name must not be NULL.
    47  * name must not be NULL.