CRI ADX  Last Updated: 2024-07-17 10:48 p
获取ACB信息
示例目录
/cri/pc/samples/criatomex/acb_info
示例描述
ACB文件 使用 CriAtomExAcb API 函数来获取"ACB信息"。
获取ACB信息的代码如下。
CriSint32 index = 0;
CriSint32 num_cues;
CriSint32 cue_id;
const CriChar8* cue_name;
const CriChar8* user_data;
/* 获取Cue数 */
num_cues = criAtomExAcb_GetNumCues(acb_hn);
/* 获取Cue ID */
cue_id = criAtomExAcb_GetCueIdByIndex(acb_hn, index);
/* 获取Cue名 */
cue_name = criAtomExAcb_GetCueNameByIndex(acb_hn, index);
/* 获取用户数据 */
user_data = criAtomExAcb_GetUserDataById(acb_hn, cue_id);
CriAtomExCueId criAtomExAcb_GetCueIdByIndex(CriAtomExAcbHn acb_hn, CriAtomExCueIndex index)
Get the ID of a Cue from its index
const CriChar8 * criAtomExAcb_GetCueNameByIndex(CriAtomExAcbHn acb_hn, CriAtomExCueIndex index)
Get the name of a Cue from its index
CriSint32 criAtomExAcb_GetNumCues(CriAtomExAcbHn acb_hn)
Get the number of Cues in the ACB
const CriChar8 * criAtomExAcb_GetUserDataById(CriAtomExAcbHn acb_hn, CriAtomExCueId id)
Get the user data string of a Cue from its ID


示例使用的数据中AtomCraft项目的目录

/cri/tools/criatomex/examples/tutorial_data_for_runtime