]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/resources.qh
Merge branch 'master' into terencehill/translated_keys
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / resources.qh
1 #pragma once
2
3 /// \file
4 /// \brief Header file that describes resource types.
5 /// \author Lyberta
6 /// \copyright GNU GPLv2 or any later version.
7
8 /// \brief Unconditional maximum amount of resources the entity can have.
9 const int RES_AMOUNT_HARD_LIMIT = 999;
10 const int RES_LIMIT_NONE = -1;
11
12 /// \brief Describes the available resource types.
13 enum
14 {
15         RES_NONE, ///< Indicates the lack of resource. Use with caution.
16         RES_HEALTH, ///< Health.
17         RES_ARMOR, ///< Armor.
18         RES_SHELLS, ///< Shells (used by shotgun).
19         RES_BULLETS, ///< Bullets (used by machinegun, rifle, HMG)
20         RES_ROCKETS, ///< Rockets (used by mortar, hagar, devastator, etc).
21         RES_CELLS, ///< Cells (used by electro, crylink, vortex, etc)
22         RES_PLASMA, ///< Plasma (unused).
23         RES_FUEL ///< Fuel (used by jetpack).
24 };