X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fresources.qh;h=6ff3cea67917973eab045526b76d0c6d97b05890;hp=ce8e1e8e5daaa3f023cfe169f814a5aa5c8ba89c;hb=bc50c2d7ca3e0a44ed1712400ef8e170e6df8210;hpb=235e1cf920d59aca16a705699c45e6d83818d5cd diff --git a/qcsrc/server/resources.qh b/qcsrc/server/resources.qh index ce8e1e8e5..6ff3cea67 100644 --- a/qcsrc/server/resources.qh +++ b/qcsrc/server/resources.qh @@ -1,25 +1,15 @@ #pragma once + /// \file /// \brief Header file that describes the resource system. /// \author Lyberta /// \copyright GNU GPLv2 or any later version. +#include + /// \brief Unconditional maximum amount of resources the entity can have. const int RESOURCE_AMOUNT_HARD_LIMIT = 999; -/// \brief Describes the available resource types. -enum -{ - RESOURCE_HEALTH = 1, ///< Health. - RESOURCE_ARMOR, ///< Armor. - RESOURCE_SHELLS, ///< Shells (used by shotgun). - RESOURCE_BULLETS, ///< Bullets (used by machinegun and rifle) - RESOURCE_ROCKETS, ///< Rockets (used by mortar, hagar, devastator, etc). - RESOURCE_CELLS, ///< Cells (used by electro, crylink, vortex, etc) - RESOURCE_PLASMA, ///< Plasma (unused). - RESOURCE_FUEL ///< Fuel (used by jetpack). -}; - // ============================ Public API ==================================== /// \brief Returns the maximum amount of the given resource.