1#pragma once
2
3/**
4 * Returns the bit ID of a key
5 */
6#define ITEM_KEY_BIT(n)	( bitshift(1, n) )
7
8#define ITEM_KEY_MAX	24
9
10/**
11 * list of key names.
12 */
13#ifdef SVQC
14string item_keys_names[ITEM_KEY_MAX];
15
16/**
17 * Use keys from p on l.
18 * Returns true if any new keys were given, false otherwise.
19 */
20float item_keys_usekey(entity l, entity p);
21
22/**
23 * Returns a string with a comma separated list of key names, as specified in keylist.
24 */
25string item_keys_keylist(float keylist);
26#endif
27