Ovis_Entity_Property_Name_To_String()

摘要

根据传入的实体属性返回对应的字符串。

语法

Ovis_Entity_Property_Name_To_String (prop)
参数 类型 说明
prop OvisT_Entity_Property 属性

返回类型

const char *

所请求的字符串

头文件

ovis_base.h

详情

该函数返回表示指定属性名称的字符串。返回值将是下列之一

  • "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"

无法识别的属性返回 "<Invalid>"。

示例

OvisT_Decoration_Type * dec_type;
char                    buf [128];

/* …decoration created elsewhere */

sprintf (buf, “Decoration type is %s.“, Ovis_Decoration_Type_To_String (dec_type));

错误

无。

参考

  • 无

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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