"SCNAudioSource *_steps[StepsSoundCount][AAPLFloorMaterialCount]" 类型

Type of "SCNAudioSource *_steps[StepsSoundCount][AAPLFloorMaterialCount]"

我在 WWDC 15 Fox 项目中发现了这行有趣的代码,文件 APPLCharacter.m.Please 告诉我类型,IDK 很多 objective-c SCNAudioSource *_steps[StepsSoundCount][AAPLFloorMaterialCount]; 这是枚举 typedef NS_ENUM(NSUInteger, AAPLFloorMaterial) { AAPLFloorMaterialGrass, AAPLFloorMaterialRock, AAPLFloorMaterialWater, AAPLFloorMaterialInTheAir, AAPLFloorMaterialCount };#define StepsSoundCount 10

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

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