You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using NetMFAPatcher.Utils;
using static NetMFAPatcher.MMFParser.Data.ChunkList;
namespace NetMFAPatcher.MMFParser.ChunkLoaders.Banks
{
public class MusicBank : ChunkLoader
{
public int NumOfItems = 0;
public int References = 0;
public List<MusicFile> Items;
public override void Print(bool ext)
{
}
public override string[] GetReadableData()
{
throw new NotImplementedException();
}
public override void Read()
{
//Someone is using this lol?
Items = new List<MusicFile>();
NumOfItems = Reader.ReadInt32();
Console.WriteLine(NumOfItems);
for (int i = 0; i < NumOfItems; i++)
{
var item = new MusicFile(Reader);
item.Read();
Items.Add(item);
}
}
public MusicBank(ByteReader reader) : base(reader)
{
}
public MusicBank(Chunk chunk) : base(chunk)
{
}
}
public class MusicFile : ChunkLoader
{
public int Handle;
public string Name = "ERROR";
public byte[] Data;
public override void Print(bool ext)
{
}
public override string[] GetReadableData()
{
throw new NotImplementedException();
}
public override void Read()
{
}
public MusicFile(ByteReader reader) : base(reader)
{
}
public MusicFile(Chunk chunk) : base(chunk)
{
}
}
}