void SerializeStringType(IO.EndianStream s, AKBKHashHeader hdr, AkSoundBank bank)
 {
     switch (hdr.Type)
     {
     case AkSoundBankStringMappingBase.StringType.OldEvents:
         SerializeEntries(s, ref Events);
         break;
     }
 }
        void SerializeStringType(IO.EndianStream s, AKBKHashHeader hdr, AkSoundBank bank)
        {
            Contract.Assert(hdr.Type == AkSoundBankStringMappingBase.StringType.Bank);

            uint   bank_id = uint.MaxValue;
            string str     = null;

            s.Stream(ref bank_id);
            s.Stream(ref str, kStringEncoding);

            bank.MapIdToName(bank_id, str);
        }
Ejemplo n.º 3
0
        internal void PrepareForExtraction(AkSoundBank bank)
        {
            foreach (var kv in mObjects)
            {
                if (kv.Key != HircType.Sound)
                {
                    continue;
                }

                foreach (var dic in kv.Value)
                {
                    ((AkSoundBankHierarchySound)dic.Value).PrepareForExtraction(bank);
                }
            }
        }