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.
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
using NetMFAPatcher.chunkloaders;
|
|
using NetMFAPatcher.MMFParser.Data;
|
|
using NetMFAPatcher.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static NetMFAPatcher.MMFParser.Data.ChunkList;
|
|
|
|
namespace NetMFAPatcher.mmfparser.chunkloaders
|
|
{
|
|
public class FrameItems : ChunkLoader
|
|
{
|
|
public Dictionary<int, ObjectInfo> ItemDict = new Dictionary<int, ObjectInfo>();
|
|
public List<string> names = new List<string>();
|
|
public FrameItems(Chunk chunk) : base(chunk) { }
|
|
public FrameItems(ByteIO reader) : base(reader) { }
|
|
public override void Print(bool ext)
|
|
{
|
|
|
|
}
|
|
|
|
public override void Read()
|
|
{
|
|
Console.WriteLine("Reading FrameItems");
|
|
var count = reader.ReadInt32();
|
|
|
|
for (int i = 0; i < count; i++)
|
|
{
|
|
var item = new ObjectInfo(reader);
|
|
item.verbose = false;
|
|
item.Read();
|
|
ItemDict.Add(item.handle, item);
|
|
names.Add(item.name);
|
|
//Logger.Log($"Found FrameItem: '{item.name}' with handle ({item.handle})", true, ConsoleColor.Magenta);
|
|
}
|
|
GameData.testItems = this;
|
|
|
|
}
|
|
}
|
|
}
|