Exemple #1
0
 internal static AudioArrayVoice ParseAsset(BinaryReader reader, AssetImportCollection imports)
 {
     return(new AudioArrayVoice
     {
         AudioEntries = reader.ReadListAtOffset(() => AudioVoiceEntry.ParseAsset(reader, imports)),
         ObjectSpecificEntries = reader.ReadArrayAtOffset(() => AudioObjectSpecificVoiceEntry.ParseAsset(reader, imports)),
         NamedEntries = reader.ReadArrayAtOffset(() => AudioVoiceReferentialEntry.ParseAsset(reader, imports)),
     });
 }
Exemple #2
0
        internal static AudioObjectSpecificVoiceEntry ParseAsset(BinaryReader reader, AssetImportCollection imports)
        {
            var result = new AudioObjectSpecificVoiceEntry();

            ParseAsset(reader, result, imports);

            result.AudioType    = reader.ReadUInt32AsEnum <ThingTemplateObjectSpecificVoiceType>();
            result.TargetObject = imports.GetImportedData <ObjectDefinition>(reader);

            return(result);
        }