project_files/frontlib/model/weapon.h
changeset 7482 d70a5b0d1190
parent 7320 e704706008d4
child 7497 7e1d72fc03c7
equal deleted inserted replaced
7479:c8c552ee3acb 7482:d70a5b0d1190
    21 #define MODEL_WEAPON_H_
    21 #define MODEL_WEAPON_H_
    22 
    22 
    23 #include "../hwconsts.h"
    23 #include "../hwconsts.h"
    24 
    24 
    25 /**
    25 /**
    26  * These values are all in the range 0..9
    26  * These values are all ASCII characters in the range '0'..'9'
       
    27  * The fields are zero-terminated so they can easily be used as strings.
    27  *
    28  *
    28  * For loadout, 9 means inifinite ammo.
    29  * For loadout, 9 means inifinite ammo.
    29  * For the other setting, 9 is invalid.
    30  * For the other setting, 9 is invalid.
       
    31  * TODO stop reference counting, it complects everything
    30  */
    32  */
    31 typedef struct {
    33 typedef struct {
    32 	int _referenceCount;
    34 	int _referenceCount;
    33 	char loadout[WEAPONS_COUNT+1];
    35 	char loadout[WEAPONS_COUNT+1];
    34 	char crateprob[WEAPONS_COUNT+1];
    36 	char crateprob[WEAPONS_COUNT+1];