Ovis_Entity_Animation_Get()

摘要

获取 Ovis 实体的动画信息。

语法

Ovis_Entity_Animation_Get (ent_ptr, buf_size_ptr, name_buffer, animated_ptr, agg_ptr, type_ptr, force_ptr, dead_reckoning_ptr)
参数 类型 说明
ent_ptr OvisT_Entity * 实体
buf_size_ptr size_t * 缓冲区大小
name_buffer char * 名称缓冲区
animated_ptr OvisT_Boolean 指示实体是否带动画
agg_ptr OvisT_Aggregation_Mode * 聚合模式
type_ptr OvisT_DIS_Type * 实体类型
force_ptr OvisT_DIS_Force * DIS 阵营
dead_reckoning_ptr OvisT_DIS_Dead_Reckoning * DIS 航位推算

返回类型

OvisT_Compcode

若实体有效则返回 OvisC_Compcode_Success,否则返回 OvisC_Compcode_Failure。

头文件

ovis_entity.h

详情

该函数获取 Ovis 实体的动画信息。如果 * buf_siz_ptr 不足以在 name_buffer 中存储名称,函数返回失败,并将 * buf_size_ptr 设置为存储名称所需的最小尺寸。

任一返回参数都可以设为 OVISC_NIL,此时对应的值不会被返回。

示例

OvisT_Entity       * ent_ptr;
char                 name [100];
size_t	               size = 100;
OvisT_DIS_Type       type;

/* Entity was created at some point */

Ovis_Entity_Animation_Get (ent_ptr, &size, name, OVISC_NIL, &type, OVISC_NIL, OVISC_NIL);

错误

  • 实体为 NIL。

参考

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