X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fresources.qh;h=b5e188b62062b8bba29cd4049f818485a346a766;hp=6a54bf2e86aa60287bdcf2cc5932fe41ae549f6b;hb=5d929ee0b1dc587e3154a4fa4b56e83b9ba9100b;hpb=3fc2359b7933352424af07db8f84cbb9342e934f diff --git a/qcsrc/server/resources.qh b/qcsrc/server/resources.qh index 6a54bf2e86..b5e188b620 100644 --- a/qcsrc/server/resources.qh +++ b/qcsrc/server/resources.qh @@ -19,14 +19,14 @@ float GetResourceLimit(entity e, int res_type); /// \param[in] e Entity to check. /// \param[in] res_type Type of the resource (a RES_* constant). /// \return Current amount of resource the given entity has. -float GetResourceAmount(entity e, int res_type); +float GetResource(entity e, int res_type); /// \brief Sets the current amount of resource the given entity will have. /// \param[in,out] e Entity to adjust. /// \param[in] res_type Type of the resource (a RES_* constant). /// \param[in] amount Amount of resource to set. /// \return No return. -void SetResourceAmount(entity e, int res_type, float amount); +void SetResource(entity e, int res_type, float amount); /// \brief Gives an entity some resource. /// \param[in,out] receiver Entity to give resource to.