6 FOREACH(Resources, it.m_field == res_field,
return it);
7 error(
"GetResourceType: Invalid field.");
#define FOREACH(list, cond, body)
Resource GetResourceType(.float res_field)
Converts an entity field to resource type.
float GetResourceField(Resource res_type)
Converts resource type (a RES_* constant) to entity field.