2019-01-26 00:39:37 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2019-02-01 17:19:20 +00:00
|
|
|
|
namespace RobloxFiles.BinaryFormat.Chunks
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
|
|
|
|
public class META
|
|
|
|
|
{
|
|
|
|
|
public int NumEntries;
|
2019-05-17 06:14:04 +00:00
|
|
|
|
public Dictionary<string, string> Data = new Dictionary<string, string>();
|
2019-01-26 00:39:37 +00:00
|
|
|
|
|
2019-05-19 04:44:51 +00:00
|
|
|
|
public META(BinaryRobloxFileChunk chunk)
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
2019-05-19 04:44:51 +00:00
|
|
|
|
using (BinaryRobloxFileReader reader = chunk.GetDataReader())
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
|
|
|
|
NumEntries = reader.ReadInt32();
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < NumEntries; i++)
|
|
|
|
|
{
|
|
|
|
|
string key = reader.ReadString();
|
|
|
|
|
string value = reader.ReadString();
|
2019-05-17 06:14:04 +00:00
|
|
|
|
Data.Add(key, value);
|
2019-01-26 00:39:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|