Exemplo n.º 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)),
     });
 }
Exemplo n.º 2
0
        internal static AudioVoiceEntry ParseAsset(BinaryReader reader, AssetImportCollection imports)
        {
            var result = new AudioVoiceEntry();

            ParseAsset(reader, result, imports);

            result.AudioType = reader.ReadUInt32AsEnum <ThingTemplateVoiceType>();

            return(result);
        }