Typed entity field access macros. More...
| Macros | |
| #define | E_DSTRING(p, e, o) | 
| Access a dstring entity field.  More... | |
| #define | E_FLOAT(e, o) | 
| Access a float entity field.  More... | |
| #define | E_FUNCTION(e, o) | 
| Access a function entity field.  More... | |
| #define | E_GSTRING(p, e, o) | 
| Access a string entity field, converting it to a C string.  More... | |
| #define | E_INT(e, o) | 
| Access an integer entity field.  More... | |
| #define | E_POINTER(e, o) | 
| Access a pointer entity field.  More... | |
| #define | E_QUAT(e, o) | 
| Access a quaternion entity field.  More... | |
| #define | E_STRING(e, o) | 
| Access a string index entity field.  More... | |
| #define | E_UINT(e, o) | 
| Access an unsigned integer entity field.  More... | |
| #define | E_var(e, o, t) ((e)->v[o].t##_var) | 
| #define | E_VECTOR(e, o) | 
| Access a vector entity field.  More... | |
Typed entity field access macros.
No checking is done against the QC type, but the appropriate C type will be used.
| #define E_DSTRING | ( | p, | |
| e, | |||
| o | |||
| ) | 
Access a dstring entity field.
Kills the program if the dstring is invalid.
string | p | pointer to progs_t VM struct | 
| e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_FLOAT | ( | e, | |
| o | |||
| ) | 
Access a float entity field.
Can be assigned to.
float | e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_FUNCTION | ( | e, | |
| o | |||
| ) | 
Access a function entity field.
Can be assigned to.
void() | e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_GSTRING | ( | p, | |
| e, | |||
| o | |||
| ) | 
Access a string entity field, converting it to a C string.
Kills the program if the string is invalid.
string | p | pointer to progs_t VM struct | 
| e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_INT | ( | e, | |
| o | |||
| ) | 
Access an integer entity field.
Can be assigned to.
integer | e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_POINTER | ( | e, | |
| o | |||
| ) | 
Access a pointer entity field.
Can be assigned to.
void * | e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_QUAT | ( | e, | |
| o | |||
| ) | 
Access a quaternion entity field.
Can be used any way a quat_t variable can.
quaterion | e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_STRING | ( | e, | |
| o | |||
| ) | 
Access a string index entity field.
Can be assigned to.
string | e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_UINT | ( | e, | |
| o | |||
| ) | 
Access an unsigned integer entity field.
Can be assigned to.
uinteger | e | pointer to the entity | 
| o | field offset into entity data space | 
| #define E_VECTOR | ( | e, | |
| o | |||
| ) | 
Access a vector entity field.
Can be used any way a vec3_t variable can.
vector | e | pointer to the entity | 
| o | field offset into entity data space |