equal
deleted
inserted
replaced
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]; |