X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fresources.qh;fp=qcsrc%2Fcommon%2Fresources.qh;h=81f4eb54a4a02979f071bbe5e3170f7f3c375f0c;hb=be37ea91fb3bbd1a6fa4f0b70b32d1ea95343ad4;hp=0000000000000000000000000000000000000000;hpb=c1afbb3db4d2b8f1ca73b331ebe00cd276a99f1b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/resources.qh b/qcsrc/common/resources.qh new file mode 100644 index 0000000000..81f4eb54a4 --- /dev/null +++ b/qcsrc/common/resources.qh @@ -0,0 +1,24 @@ +#pragma once + +/// \file +/// \brief Header file that describes resource types. +/// \author Lyberta +/// \copyright GNU GPLv2 or any later version. + +/// \brief Unconditional maximum amount of resources the entity can have. +const int RES_AMOUNT_HARD_LIMIT = 999; +const int RES_LIMIT_NONE = -1; + +/// \brief Describes the available resource types. +enum +{ + RES_NONE, ///< Indicates the lack of resource. Use with caution. + RES_HEALTH, ///< Health. + RES_ARMOR, ///< Armor. + RES_SHELLS, ///< Shells (used by shotgun). + RES_BULLETS, ///< Bullets (used by machinegun, rifle, HMG) + RES_ROCKETS, ///< Rockets (used by mortar, hagar, devastator, etc). + RES_CELLS, ///< Cells (used by electro, crylink, vortex, etc) + RES_PLASMA, ///< Plasma (unused). + RES_FUEL ///< Fuel (used by jetpack). +};