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

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

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com