]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/item_key.qh
It actually compiles
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / item_key.qh
1 /**
2  * Returns the bit ID of a key
3  */
4 #define ITEM_KEY_BIT(n) ( bitshift(1, n) )
5
6 #define ITEM_KEY_MAX    24
7
8 /**
9  * list of key names.
10  */
11 #ifdef SVQC
12 string item_keys_names[ITEM_KEY_MAX];
13
14 /**
15  * Use keys from p on l.
16  * Returns TRUE if any new keys were given, FALSE otherwise.
17  */
18 float item_keys_usekey(entity l, entity p);
19
20 /**
21  * Returns a string with a comma separated list of key names, as specified in keylist.
22  */
23 string item_keys_keylist(float keylist);
24 #endif