]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/resources/resources.qc
Offset Resource hook args to avoid conflicts as much as possible with other hooks
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / resources / resources.qc
1 #include "resources.qh"
2
3 #ifdef GAMEQC
4 Resource GetResourceType(.float res_field)
5 {
6         FOREACH(Resources, it.m_field == res_field, return it);
7         error("GetResourceType: Invalid field.");
8         return RES_NONE;
9 }
10
11 .float GetResourceField(Resource res_type)
12 {
13         return res_type.m_field;
14 }
15 #endif