Ovis_Entity_Property_Name_To_String()
Abstract
Returns a string based on the passed entity property.
Syntax
Ovis_Entity_Property_Name_To_String (prop)
| Argument | Type | Description |
|---|---|---|
prop |
OvisT_Entity_Property |
Property |
Return Type
const char *
Requested string
Header
ovis_base.h
Details
This function returns a string representing the name of the specified property. The returned value will be one of
"OvisC_Entity_Property_Damage_State""OvisC_Entity_Property_Trail_State""OvisC_Entity_Property_Hatch_State""OvisC_Entity_Property_Lights_State""OvisC_Entity_Property_Smoke_Plume""OvisC_Entity_Property_Engine_Smoke""OvisC_Entity_Property_Flames_Present""OvisC_Entity_Property_Camouflage_Type""OvisC_Entity_Property_Primary_Weapon""OvisC_Entity_Property_Secondary_Weapon""OvisC_Entity_Property_Antenna_Raised"
An unrecognized property returns “<Invalid>”.
Example
OvisT_Decoration_Type * dec_type;
char buf [128];
/* …decoration created elsewhere */
sprintf (buf, “Decoration type is %s.“, Ovis_Decoration_Type_To_String (dec_type));
Errors
None.
Reference
- None