Roblox-File-Format/BinaryFormat/Chunks/META.cs
2019-05-18 23:44:51 -05:00

26 lines
695 B
C#

using System.Collections.Generic;
namespace RobloxFiles.BinaryFormat.Chunks
{
public class META
{
public int NumEntries;
public Dictionary<string, string> Data = new Dictionary<string, string>();
public META(BinaryRobloxFileChunk chunk)
{
using (BinaryRobloxFileReader reader = chunk.GetDataReader())
{
NumEntries = reader.ReadInt32();
for (int i = 0; i < NumEntries; i++)
{
string key = reader.ReadString();
string value = reader.ReadString();
Data.Add(key, value);
}
}
}
}
}