gpt4 book ai didi

ios - "SCNAudioSource *_steps[StepsSoundCount][AAPLFloorMaterialCount]"的类型

转载 作者:行者123 更新时间:2023-11-29 01:53:25 25 4
gpt4 key购买 nike

我在 WWDC 15 Fox 项目中发现了这行有趣的代码,文件 APPLCharacter.m。请告诉我类型,IDK much objective-c SCNAudioSource *_steps[StepsSoundCount][AAPLFloorMaterialCount];这是枚举typedef NS_ENUM(NSUInteger, AAPLFloorMaterial) {
AAPL地板 Material 草,
AAPLFloorMaterialRock,
AAPL地板 Material 水,
AAPL 空中地板 Material ,
AAPL地板 Material 计数
};
#define StepsSoundCount 10

_steps 是什么类型?这如何翻译成 swift ?

最佳答案

它是一个静态的二维C数组。这是 SCNAudioSource 实例数组的数组。外部数组由“ Material ”索引,每个子数组包含每个步骤的源。

关于ios - "SCNAudioSource *_steps[StepsSoundCount][AAPLFloorMaterialCount]"的类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31154109/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com