]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/item_key.qh
Revert "Merge branch 'TimePath/bot_api' into 'master'\r"
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / item_key.qh
1 #ifndef ITEM_KEY
2 #define ITEM_KEY
3
4 /**
5  * Returns the bit ID of a key
6  */
7 #define ITEM_KEY_BIT(n) ( bitshift(1, n) )
8
9 #define ITEM_KEY_MAX    24
10
11 /**
12  * list of key names.
13  */
14 #ifdef SVQC
15 string item_keys_names[ITEM_KEY_MAX];
16
17 /**
18  * Use keys from p on l.
19  * Returns true if any new keys were given, false otherwise.
20  */
21 float item_keys_usekey(entity l, entity p);
22
23 /**
24  * Returns a string with a comma separated list of key names, as specified in keylist.
25  */
26 string item_keys_keylist(float keylist);
27 #endif
28
29 #endif